All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
在Visual,C#.Net中使用CWGraph控件_.net资料_编程技术
C#教程:MouseMove事件使用实例
ASP.NET定制错误处理页面_[Asp.Net教程]
使用MS,SQL7的LINKED,SERVER第二篇_mssql学习_编程技术
从XML文件中读取数据绑定到DropDownList_[Asp.Net教程]
Delphi主菜单组件(TMainMenu)技巧
十天学会ASP.net,第十天_.net资料_编程技术
无废话C#设计模式之五:Prototype_.net资料_编程技术
PHP字符串匹配函数strstr_php资料_编程技术
XML经典问答_[XML教程]
Reading number is top 10 pictures
为什么别人说你是疯子
Small QiShu -- ShuangShuangPan1
In the world the most mysterious 21 place landscape3
中国女孩大胆自拍,显露完美身材2
代沟,真好
徐若瑄展示美丽胸围1
Sell the barbecue as says father du breul2
Street street fighting
Summer is most suitable for young people to travel in China5
王艳写真温柔如水2
Download software ranking
Unix video tutorial14
Sora aoi - one of more PK
星际争霸1.08硬盘免安装版
虚拟机汉化软件
DreamWeaver8
打鸟视频
Eclipse 4.2.1 For Win32
金山office2007
Boxer vs Yellow4
传奇私服架设教程-chm
归海一刀 published in(发表于) 2014/2/3 6:45:58 Edit(编辑)
数据库用SQL语法大全_[SQL Server教程]

数据库用SQL语法大全_[SQL Server教程]

数据库用SQL语法大全_[SQL Server教程]
  1、建表格:

  create table table_name( column1 datatype [not null] [not null primary key], column2 datatype [not null],...)

  说明: 

  datatype --是资料的格式,详见表。
  nut null --可不可以允许资料有空的(尚未有资料填入)。
  primary key --是本表的主键。

  2、更改表格 

  alter table table_name add column column_name datatype

  说明:增加一个栏位(没有删除某个栏位的语法。)

  lter table table_name add primary key (column_name)

  说明:更改表得的定义把某个栏位设为主键。
  
  alter table table_name drop primary key (column_name)

  说明:把主键的定义删除。

  3、建立索引 

  create index index_name on table_name (column_name)

  说明:对某个表格的栏位建立索引以增加查询时的速度。

  4、删除 

  drop table_name

  drop index_name

  二、资料形态 datatypes

  smallint
  16 位元的整数。

  interger
  32 位元的整数。

  decimal(p,s)
  p 精确值和 s 大小的十进位整数,精确值p是指全部有几个数(digits)大小值,s是指小数後有几位数。如果没有特别指定,则系统会设为 p=5; s=0 。

  float
  32位元的实数。

  double
  64位元的实数。

  char(n)
  n 长度的字串,n不能超过 254。

  varchar(n)
  长度不固定且其最大长度为 n 的字串,n不能超过 4000。



添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.