Computer field

kltt019 2010-10-26 11:51:29
有没有人创建过Computer field的?它的写法是怎么样的?
...全文
62 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
scien626 2010-11-08
  • 打赏
  • 举报
回复
不明白什么意思,到底是什么field
kltt019 2010-11-07
  • 打赏
  • 举报
回复
好像不是这样的吧?
--小F-- 2010-10-27
  • 打赏
  • 举报
回复
Computer field是什么?
dawugui 2010-10-26
  • 打赏
  • 举报
回复
create table tb(a int , b int ,c as a + b)
go

insert into tb(a , b) values(1,1)
insert into tb(a , b) values(2,1)
insert into tb(a , b) values(3,1)
insert into tb(a , b) values(1,6)
insert into tb(a , b) values(1,9)

select * from tb

drop table tb

/*
a b c
----------- ----------- -----------
1 1 2
2 1 3
3 1 4
1 6 7
1 9 10

(所影响的行数为 5 行)
*/
dawugui 2010-10-26
  • 打赏
  • 举报
回复
[Quote=引用楼主 kltt019 的回复:]
有没有人创建过Computer field的?它的写法是怎么样的?
[/Quote]
create table (a int , b int , c as a + b)
SQLCenter 2010-10-26
  • 打赏
  • 举报
回复
create table #(id int, data as id*100)
insert # select 1
select * from #
1 100

34,593

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧