![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql语句
lizhihui200
这个作者很懒,什么都没留下…
展开
-
union
学习SQLSERVER的资料:http://www.fzs8.net/database/2007-07-03/7601.html 与其它 Transact-SQL 语句一起使用 UNION 语句 与其它 Transact-SQL 语句一起使用 UNION 语句时,请遵循以下指南: UNION 语句中的第一个查询可以包含一个 INTO 子句,该子句用来创建容纳最终结果集的表。只有原创 2008-10-19 22:40:00 · 330 阅读 · 0 评论 -
order by 用法
--先按deptno倒序排序,在此基础上按empno的倒序排序select * from emp order by deptno desc,empno desc--下边写法错误:select * from emp order by deptno,empno desc --先按deptno倒序排序,在此基础上按empno的正序排序select * from emp order原创 2008-10-19 22:27:00 · 701 阅读 · 0 评论 -
sqlserver转化日期格式
CONVERT将某种数据类型的表达式显式转换为另一种数据类型。由于某些需求经常用到取日期格式的不同.现以下可在SQL Server中 将日期格式化.SQL Server 支持使用科威特算法的阿拉伯样式中的数据格式。在表中,左侧的两列表示将 datetime 或 smalldatetime 转换为字符数据的 style 值。给 style 值加 100,可获得包括世纪数位的四位年份 (yyy原创 2008-12-27 09:50:00 · 2761 阅读 · 1 评论 -
oracle导入导出
exp scott/tiger@155 tables=(bonus,dept,emp,salgrade) file=c:/scott.dmp log=c:/log.txtimp test/test@155 file=c:/scott.dmp tables=(bonus,dept,emp,salgrade) log=c:/log.txt原创 2009-03-19 10:36:00 · 257 阅读 · 0 评论 -
oracle开用户
alter user system identified by system;create user tseip identified by tseip2007grant resource,connect to tseipconn tseip/tseip2007原创 2009-03-19 10:35:00 · 282 阅读 · 0 评论 -
外连接中用where子句
sqlserver2000环境下: create table user (id int,school_id in);insert into user values(1,1);insert into user values(2,2); create table school(id,name);insert into school values(1,邯村小学);insert int原创 2009-05-25 22:24:00 · 568 阅读 · 0 评论