SQL
star_tomcat
这个作者很懒,什么都没留下…
展开
-
经典SQL语句大全
下列语句部分是Mssql语句,不可以在access中使用。 SQL分类: DDL—数据定义语言(CREATE,ALTER,DROP,DECLARE) DML—数据操纵语言(SELECT,DELETE,UPDATE,INSERT) DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK) 首先,简要介绍基础语句: 1、说明:创建数据库CREATE DATA转载 2009-11-10 13:22:00 · 265 阅读 · 0 评论 -
SQL Server中自动获取类似"F100"的存储过程实现
create proc xxxId(@out_next_xxxId char(4) output)asbegin declare @temp int if( (select count(*)from 表名)=0)begin set @out_next_xxxId=F100end elsebegin select @out_next_xxxId=m原创 2009-11-16 23:01:00 · 267 阅读 · 0 评论