sql2008一些简单的操作指令
create database class--创建数据库
use class--选择要操作的数据库 go /*create table student(code int not null, name varchar(10) ,birthday datetime) alter table student add sex int alter table student drop column sex drop table student*/表的创建删除和修改
/*insert into student values(1,‘张三‘,‘1990-02-02‘) insert into student values(2,‘李四‘,‘1993-04-09‘) insert into student(code,birthday)values(3,‘1994-11-06‘)
select*from student update student set code=‘100‘ update student set birthday=‘1999-09-23‘where name=‘李四‘ delete from student where name=‘张三‘*/表内容的修改
时间: 2024-11-03 10:35:31