Improve HAVING BY performance
DaniWeb » Databases
by Dani
1M ago
What are some ways to improve MySQL performance on queries against large tables that include the HAVING BY clause. It's my understanding that anything in there doesn't benefit from table indexes ..read more
Visit website
I don´t understand this syntax error when using OpenCV
DaniWeb » Databases
by Audun
2M ago
This is the error message: %Run -c $EDITOR_CONTENT Traceback (most recent call last): File "<string>", line 6 image = cv2.imread(C:\Users\Audun Nilsen\Pictures\pica.webp) ^ SyntaxError: invalid character in identifier This is the code: import cv2 # OpenCV for image processing image = cv2.imread(C:\Users\Audun Nilsen\Pictures\pica.webp ..read more
Visit website
Problem Returning MySQL Stored Procedure results using Python
DaniWeb » Databases
by cored0mp
3M ago
Hey Gang! OK today I am having trouble with my transaction processing application implemented in python/MySQL. Here is some "working" testing code. import psycopg2 from psycopg2 import Error import binascii from binascii import unhexlify import mysql.connector as mysql sql='''CREATE PROCEDURE testprocedure(OUT tacos INT) BEGIN show tables; SET tacos := 1 ; END''' blank_connection_string = { 'user': 'someusername', 'password': 'daniwebisthebest', 'host': 'localhost', 'database': 'fundatabase', 'raise_on_warni ..read more
Visit website
Crafting immersive experiences: Opus Event Rental in Anaheim
DaniWeb » Databases
by AnaheimParty
5M ago
Planning a party can be a thrilling and rewarding experience, but it can also be incredibly overwhelming. From selecting the perfect venue to organizing the theme and decorations, there are countless details to consider. That's where we come in! At Party Rentals Anaheim, we take the stress out of party planning by providing top-quality rental services that will make your event truly unforgettable. In this article, we'll explore the numerous benefits of choosing us as your party rental provider so let's dive in and discover how we can make your next event a roaring success! A Wide Range of Part ..read more
Visit website
Mysql base64 decoding?
DaniWeb » Databases
by cored0mp
6M ago
Hey! I've been asked to store some data from a client in mysql in an encoded format using python. Nothing could be easier, right? I will later need to decode the same data using mysql exclusively. Given that constraint, I thought that base64 would be the go to since nearly every contemporary data tool that we've heard of is base64-literate. So from flatfile it goes into the db using python no problem. When I try to decode the data for warehousing later, the mysql from_base64() function returns a hexadecimal string instead of....ascii string? Or whatever. Human readable string. I've found vario ..read more
Visit website
Create a database-specific table in postgres?
DaniWeb » Databases
by cored0mp
6M ago
How do I create a table in postgres that's associated with a specific database? Obviously from the command line one can do Create table tablename (); But how do I make sure that the table is associated with the correct database? CREATE table dbname.tablename(); is giving me the error: ERROR: schema "dbname" does not exist ..read more
Visit website
DateTime in TextBox (Visual Basic)
DaniWeb » Databases
by shane1961
7M ago
My textbox datatype is DateTime. Using the click event of a button, this code is placed following MyTableBindingSourceAddNew() Dim CurrentDateTime As DateTime = DateTime.Now.ToString("dd.MM.yy hh:mm:ss") Me.SaleDateTextBox.Text = CurrentDateTime I then update table with TableAdapter. On my form I have a dropdown combobox in a toolbar, display member being "SaleDate" This displays DateTime, but time is always 12:00:00AM The SaleDateTextbox.Text populates as Date.Now. I am not getting correct date and time in both textbox and combobox. All help appreciated. Shane ..read more
Visit website
SQL Query Optimization: Combining Multiple Joins for Improved Performance
DaniWeb » Databases
by Vandiun
8M ago
I'm working on an SQL query for a complex reporting system that involves multiple tables and joins. However, the query's performance is not meeting my expectations, and I suspect that the way I've structured my joins might be inefficient. Here's a simplified version of my query: SELECT orders.order_id, customers.customer_name, products.product_name, order_details.quantity, order_details.unit_price FROM orders JOIN customers ON orders.customer_id = customers.customer_id JOIN order_details ON orders.order_id = order_details.order_id JOIN products ON order_det ..read more
Visit website
CCryptographic NONCE in Content Security Policy
DaniWeb » Databases
by Steve_63
9M ago
My site is on Apache, the host has enabled 'mod_unique_id' My CSP runs in the root .htaccess. My host has given me 2 lines of code to put in the CSP to make an unrecognisable base64 NONCE code each time it's needed - particularly for PayPal. What they sent (in bold): ` <IfModule mod_headers.c> **Header set X-Nonce "expr=%{base64:%{reqenv:UNIQUE_ID}}" Header set Content-Security-Policy "expr=default-src 'self'; script-src 'self' 'nonce-%{base64:%{reqenv:UNIQUE_ID}}'"**` The 2 lines of code go in my .htaccess somewhere, I'm pretty confident about the script-src but the bit that's ..read more
Visit website
How do i make this complex ER Diagram
DaniWeb » Databases
by Layla_4
1y ago
An equipment company wishes to create a database to support the hiring of tools and machinery to clients. The company has three types of equipment: power tools, such as drills and vacuum cleaners, plants such as excavators and scaffolding. Each piece of equipment is identified by a number. Power tools are described by their model and the voltage they use, whereas plants are classified by their model and their size tonnes. can be traditional, aluminium fibreglass; in addition, its width can be single or double. A large piece of equipment may be composed of smaller pieces of equipment. The compa ..read more
Visit website

Follow DaniWeb » Databases on FeedSpot

Continue with Google
Continue with Apple
OR