MySQL SQL statement collection

1, create a database and encode it in UTF8
CREATE DATABASE {tablename} DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci;


2, Display the table creation statement for a specific table
show create table {tablename};


3, view the system character set settings
show variables like 'char%'


4, Oracle SQLDeveloper connection configuration file location
C:\Users\{UserName}\AppData\Roaming\SQL Developer\system17.2.0.188.1159\o.jdeveloper.db.connection

5, generate random strings
SELECT SUBSTRING(MD5(RAND()) FROM 1 FOR 32) AS str

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326197744&siteId=291194637