数据库查询语句研究.docVIP

  • 27
  • 0
  • 约9.21千字
  • 约 8页
  • 2017-03-24 发布于湖北
  • 举报
数据库操作归纳 SqlServer数据库操作语句(步骤): 新建数据库:create database 数据库名称 ; 例:create database LianXi; use 数据库名称 ; 例:use LianXi; 新建表:create table 表名称( 属性名/字段名 属性/字段类型 identity(1,1) primary key not null, 属性名/字段名 属性/字段类型 not null, 属性名/字段名 属性/字段类型 ); 例:create table yonghu( uid int identity(1,1) primary key not null, uname char(10) not null, upass char(10) not null, gender char(2), shouru int, birthday datetime, note text ); 查询数据 : ⑴ 基本查询: ---简单查询------------------------------------ select * from 表名称; 例:select * from yonghu; SELECT DISTINCT 表中字段名 AS 字段名别名, YEAR

文档评论(0)

1亿VIP精品文档

相关文档