创建数据库
CREATE DATABASE database_name;
创建数据表
CREATE TABLE table_name (column1_name data_type constraints,column2_name data_type constraints,.... );
插入数据
INSERT INTO table_name (column1,column2,...) VALUES (value1,value2,...);
查询数据
SELECT column1_name, column2_name, columnN_name FROM table_name;
删除数据
DELETE FROM table_name WHERE condition;
修改数据
UPDATE table_name SET column1_name = value1, column2_name = value2,...WHERE condition;
清空表
TRUNCATE TABLE table_name;
删除表
DROP TABLE table1_name, table2_name, ...;
where
SELECT column_list FROM table_name WHERE condition;
标签:...,name,WHERE,sql,table,column1,column2 From: https://www.cnblogs.com/lvxicarola/p/18122402