
SqlServer
拾忆年
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Sql编程 高级查询
SqlServer 编程 高级查询 use MyScool --全局变量 = 系统变量 --print @@version --select @@VERSION --定义局部变量=自定义变量 --declare @age int --赋值的方式 set select --declare @age int --set @age=18 --print @age --赋值的...原创 2019-07-24 18:29:54 · 184 阅读 · 0 评论 -
SqlServer 模糊、连表查询、分组
use RoomManage --1 查询客房表表并显示客房表的详细信息,(类型编号 改为类型名称显示) select fid, tid 类型名称 ,fprice,fkzrs,fyzrs,fcnt,fmenu from tb_kefang --2 查询客房登记表,显示客房登记表和客房表的详细信息 select * from tb_kefang a inner join tb_dengji...原创 2019-07-25 13:15:11 · 603 阅读 · 0 评论 -
Sql编程 高级查询
use master go if exists(select * from sysdatabases where name = 'Student') drop database Student --创建学生数据库 create database Student go use Student go --创建学生信息表 create table stuInfo ( stuNo var...原创 2019-07-25 13:38:45 · 520 阅读 · 3 评论 -
SqlServer基础02
SqlServer 基础 use MyScool --找到指定字符出现在字符串中的位置 --金蝶 select * from t_Student select CHARINDEX('蝶',SName,0) from t_Student --输出当前字符(varchar nvarchar char nchar text ntext)的长度 --在存储的方法 一个汉字 占...原创 2019-07-23 15:32:56 · 289 阅读 · 0 评论