SQL 语句快速参考
生活随笔
收集整理的這篇文章主要介紹了
SQL 语句快速参考
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
| AND / OR | SELECT column_name(s) FROM table_name WHERE condition AND|OR condition |
| ALTER TABLE (add column) | ALTER TABLE table_name ADD column_name datatype |
| ALTER TABLE (drop column) | ALTER TABLE table_name DROP COLUMN column_name |
| AS (alias for column) | SELECT column_name AS column_alias FROM table_name |
| AS (alias for table) | SELECT column_name FROM table_name AS table_alias |
| BETWEEN | SELECT column_name(s) FROM table_name WHERE column_name BETWEEN value1 AND value2 |
| CREATE DATABASE | CREATE DATABASE database_name |
| CREATE INDEX | CREATE INDEX index_name ON table_name (column_name) |
| CREATE TABLE | CREATE TABLE table_name ( column_name1 data_type, |
總結(jié)
以上是生活随笔為你收集整理的SQL 语句快速参考的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql连接查询之间的差异性
- 下一篇: fmincon函数求解过程中出现无解的情