随笔分类 -  MSSQL

微软sql server
Inner Join
摘要:select * from table1 inner join table2 on table1.id = table2.id select * from table1 , table2 where table1.id = table2.id 两种方式的执行结果一样 它们的具体区别是什么呀 1 .WHERE子句中使用的连接语句,在数据库语言中,被称为隐性连接。INNER JO... 阅读全文
posted @ 2008-11-10 18:53 水若冰 阅读(253) 评论(0) 推荐(0)
sql语句
摘要:use test go create table u(userid char(5),username char(10)); go create table c(cid char(3),cname char(10)); go create table uc(userid char(5),cid char(3),usergrade int); go insert u values('1','张三');... 阅读全文
posted @ 2008-11-06 19:13 水若冰 阅读(177) 评论(0) 推荐(0)