Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3073259
  • 博文数量: 1412
  • 博客积分: 15478
  • 博客等级: 上将
  • 技术积分: 14938
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-23 16:08
文章存档

2016年(1)

2015年(17)

2013年(13)

2012年(103)

2011年(185)

2010年(261)

2009年(425)

2008年(363)

2007年(44)

分类: 数据库开发技术

2009-06-18 13:06:18

不知为什么,我的机子上安不上SQL2005,只好安了2000,哪位有高见呢。
下面是SQL数据库学习涉及到的内容(1)
建立数据库 create database test1
建立表格   create table1
 
插入语句:insert into table1(name,sex,birthday) values ('li','1','1900-1-1')

查询语句:select * from table1 where name like '%li%'
select * from table2 where  tid not between 2 and 4
select * from table1 where tid =1 or tid=4 or tid =8
select * from tanle2 where tid in (select tid from table1)
更新语句:update table1 set name='wang' where name='li'
删除语句:delete table1 where name='wang'
 
看明白了吗?
阅读(515) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~