摘要:
use testgo--select * from stu2drop table stu2--删除表gocreate table stu2 --新建一个名为stu2表( id int primary key, name char(20) not null, sex char(10) not null... 阅读全文
摘要:
use test --操作test表go--查询select * from stu -- 查询stu里的所有数据select top 3 * from stu -- 查询stu里前三行数据select top 3 * from stu where age = 45 --查询stu里指定条件的前三行数... 阅读全文
摘要:
use masterif db_id ('test') is not null--判断test数据库是否存在 drop database [test]--如果存在 删除testgo--完成查找删除工作/*****创建一个数据库****/create database [test]--创建数据库tes... 阅读全文