declare @categoryid int
select
c.categoryid,
c.name,
n.title,
n.createtime
from
category c,
news n
where
c.categoryid=n.foreignid
and
c.categoryid=@categoryidfrom里定义数据表的缩写 实在有些不方便 内容一些多就容易眼花
还有什么好的方法可以定义表缩写的?
select
c.categoryid,
c.name,
n.title,
n.createtime
from
category c,
news n
where
c.categoryid=n.foreignid
and
c.categoryid=@categoryidfrom里定义数据表的缩写 实在有些不方便 内容一些多就容易眼花
还有什么好的方法可以定义表缩写的?
解决方案 »
- 求ORACLE10的入门的电子文档
- sql数据同步,复制默认值绑定无法设置为true
- 这个语句怎么写 ?速揭贴~高手COME
- 这条语句怎么了 SQL查询问题
- 在access中有个"压缩和修复数据库"功能,在sqlserver有没有对应的功能啊?
- 动态SQL能查询我创建的临时表么?
- postgreql下为什么不能启动数据库LOG: database system is ready to accept connections
- 谁能帮我详细讲解下下面这些语句啊,求你们了。。
- sql的连接问题,这个需要经验丰富的人来回答
- sqlserver程序中锁定纪录的问题?
- 帮写一个sql语句~
- sql2005操作xml没有modify命令?
select * from 表 as a
格式采用
from
category as c,
news as n ,
中列式 清晰
select
c.categoryid,
c.name,
n.title,
n.createtime
from
category c, news n
where
c.categoryid=n.foreignid and c.categoryid=@categoryid