oracl 和db2 常用语法比较: 1、取前N条记录 Oracle:Select * from TableName where rownum <= N; DB2:Select * from TableName fetch first N rows only; 2、取得系统日期 Oracle:Select sysdate from dual; DB2:Select current timestamp from sysibm.sysdummy1; 3、空值转换 Oracle:Select
MYSQL
SQL语言:
Structure Query Language(结构化查询语言)
SQL分类:
DCL 数据控制语言:
Data Control Language(MySQL权限管理)
DDL数据定义语言:
Data Defination Language(建库,建表,删库,删表等操作)
DML 数据操纵语言:
Data Manipulation Language(增insert,删delete,查select,改update)
SQL语句中:
1.关键字不区分大小写;
2.每条语句