
SQL
小小脚本
JAVA
展开
-
sql语句
10、说明:几个简单的基本的sql语句选择:select*from table1 where 范围插入:insertinto table1(field1,field2) values(value1,value2)删除:deletefrom table1 where 范围更新:update table1 set field1=value1 where 范围查找:select*转载 2017-02-07 11:11:12 · 326 阅读 · 0 评论 -
54条sql学习
--1、查找员工的编号、姓名、部门和出生日期,如果出生日期为空值,显示日期不详,并按部门排序输出,日期格式为yyyy-mm-dd。 2 select emp_no,emp_name,dept,isnull(convert(char(10),birthday,120),'日期不详') birthday 3 from employee 4 order by dept 5 6 --转载 2017-06-13 20:48:11 · 504 阅读 · 0 评论