MySQL is a free, open source Relational Database Management System (RDBMS) that uses Structured Query Language (SQL). DO NOT USE this tag for other DBs such as SQL Server, SQLite etc. These are different DBs which all use SQL to manage the data.
In MySQL, how do I get a list of all foreign key constraints pointing to a particular table? a particular colu
I've created database, for example 'mydb'. CREATE DATABASE mydb CHARACTER SET utf8 COLLATE ut
I want to create a new user in MySQL and give it full access only to one database, say dbTest, that I create w
I want to pull out duplicate records in a MySQL Database. This can be done with: SELECT address, count(id) a
I have a table story_category in my database with corrupt entries. The next query returns the corrupt entries:
I accidentally enabled ONLY_FULL_GROUP_BY mode like this: SET sql_mode = 'ONLY_FULL_GROUP_BY'; Ho
Why doesn't a TRUNCATE on mygroup work? Even though I have ON DELETE CASCADE SET I get: ERROR 1701 (4
This should be dead simple, but I cannot get it to work for the life of me. I'm just trying to connect re
How do I copy or clone or duplicate the data, structure, and indices of a MySQL table to a new one? This is w
I have a table with a varchar column, and I would like to find all the records that have duplicate values in t
Per the MySQL docs, there are four TEXT types: TINYTEXT TEXT MEDIUMTEXT LONGTEXT What is the maximum length t
While executing an INSERT statement with many rows, I want to skip duplicate entries that would otherwise caus
I have 2-3 different column names that I want to look up in the entire database and list out all tables which
How do you set a default value for a MySQL Datetime column? In SQL Server it's getdate(). What is the eq
I have a table: table votes ( id, user, email, address, primary key(id), ); Now I want
I'm trying to update the column visited to give it the value 1. I use MySQL workbench, and I'm writi
I can run this query to get the sizes of all tables in a MySQL database: show table status from myDatabaseNam
Between utf8_general_ci and utf8_unicode_ci, are there any differences in terms of performance?