Category "mysql"

getting error while trying to make put request to mysql in nodejs

I am getting this error while I am trying to send a put request to update a row of a product table in mysql using nodejs. Here's my code: exports.updateProduct=

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

I need help figuring out what's wrong. I want to install phpmyadmin on a server to import a wordpress DB but when I install it I have a problem with php-twig I

Update column "total price" in orders table using other columns (pizza_price*pizza_amount) in different tables?

This is relational diagram of database I created: I need to insert total price in Orders.Total_Price column by multiplying the Pizza.Pizza_Price value with Ord

How to index a text field or make it searchable in MySQL?

I have stored about 7 million biological protein sequences in text field of MySQL table (using InnoDB storage engine and latin1_swedish_ci collation). Sequence

SQL statement not giving me desired output when i do not have a certain column

I am trying to retrieve these values from mysql table using this statement in my node.js SELECT product.name, product.image, product.description, prod

MySQL/PHP - Web Based Game -User specific inventory table or 1 giant table? Another option?

So im making a web based game similar to Torn City, where there could potentially be millions of users. My issue is regarding user inventories. I started out cr

how can we check if a column exists on Table in MySQL without using Stored Procedure

how we can check if a column exists on Table in MySQL without using Stored Procedure. MySQL v3.23 which won't support writing Store Procedure.

I get this message in MYSQL in Windows: Target host is configured as Windows, but seems to be a different OS. Please review the connection settings

I'm trying to set a MySQL Database in my pc for development. Of course I've tried to change the OS None of this options made it work. Although when I hit the

renameColumn migration fails for existing column with columns does not exist error

I get the error Doctrine\DBAL\Schema\SchemaException : There is no column with name 'price' on table 'class_rooms'. while running migration to rename the price

What is wrong with this inner join sql query

I want to export some data from the DB. Basically what I want to say is this: 1- Select mbr_name from the members table 2- Choose the ones that exist at the cou

Liquibase exclude any changesets without a label

Is it possible to prevent changesets without a label from being deployed? We want to deploy our changesets based on feature/ticket using liquibase labels. Howev

MySQL for update prevent lock joined tables

I need to process a queue and MySQL for update is the goal for that. Everything is working fine, except the fact for update is locking joined tables too. I have

How to calculate weekends of time range using MySQL

I need to calculate weekends of time range using MySQL. This is what I have so far(about calculate working days but i want to calculate weekends): select (f

Laravel : How to Create Dropdown to Select FOREIGN KEY from Other Table?

i want to ask you how to select FOREIGN KEY (from "doa_id in "doas" table) when user create a new data (to the "notes table) in a form. This is my code : NoteCo

Is it possible to make a join query with Prisma without a foreign key?

I've been struggling with this for a while but with no success. I have two tables that might have a relation but not necessarily. FIRST +----+-----------+------

Is it possible to make a join query with Prisma without a foreign key?

I've been struggling with this for a while but with no success. I have two tables that might have a relation but not necessarily. FIRST +----+-----------+------

MySQL single table with hourly, daily, monthly values, or separate tables?

When working with data values, should I create a single table storing the hourly values, and also the aggregated daily/monthly values, or should I create separa

group by cols but with a value

Question on the sql, any help is appreciated dataset: a_col b_col 1 null null 1 2 null null 2 expected output a_col b_col gro

Error 1061 (MYSQL Workbench) duplicate keys when creating indexes

I cannot understand why I keep getting an 1061 error for key duplicates on indexes when I dont have any duplicates. I've looked at other stackoverflow posts reg

Indexing 80 million documents to elasticsearch from Django

I am using the latest version of django elasticsearch dsl and I am using the following command to index around 80 million documents: python manage.py search_ind