惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - Franky
有赞技术团队
有赞技术团队
Last Week in AI
Last Week in AI
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements
雷峰网
雷峰网
T
Tor Project blog
博客园_首页
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Register - Security
The Register - Security
T
The Blog of Author Tim Ferriss
Recorded Future
Recorded Future
V
Vulnerabilities – Threatpost
Project Zero
Project Zero
J
Java Code Geeks
AWS News Blog
AWS News Blog
Security Latest
Security Latest
Spread Privacy
Spread Privacy
T
Threatpost
博客园 - 三生石上(FineUI控件)
I
Intezer
G
Google Developers Blog
Scott Helme
Scott Helme
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The Hacker News
The Hacker News
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
NISL@THU
NISL@THU
A
Arctic Wolf
F
Full Disclosure
P
Proofpoint News Feed
G
GRAHAM CLULEY
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
P
Proofpoint News Feed
N
Netflix TechBlog - Medium
C
Cybersecurity and Infrastructure Security Agency CISA
T
Threat Research - Cisco Blogs
B
Blog
IT之家
IT之家
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
Know Your Adversary
Know Your Adversary

博客园 - 小K

jquery、js调用iframe父窗口与子窗口元素的方法整理 转载笔记:DropDownList无限级分类(灵活控制显示形式) [转]oracle数据库定时任务dbms_job的用法详解 转 无依赖Office资源的导入导出 IE带有的网页过渡特效,可以用于触摸屏程序 - 小K - 博客园 屏蔽IE的图片工具条,防止图片被轻易保存的一种方法 - 小K - 博客园 Asp.Net Winform 条形码系列之Code39 Code39 Of .Net BarCode Serial Blog 只需四天,从零开始选购笔记本电脑【转】【荐】 IP地址、手机归属和身份证查询接口 Ajax Loading图标收集 - 小K - 博客园 IE下的开发工具包 [转载]5行代码实现无缝滚动 - 小K - 博客园 [发布]LinScroll (jquery插件) (用图片自定义滚动条) 于.net开发平台项目案例集锦 ASP通用分页类[强] SQL SERVER日志清除方法 远程连接SQL Server 2000 SQL Server 2000不能远程连接的问题 asp.net HttpHand和HttpModule的详细解释,包括Asp.Net对Http请求的处理流程。
如何用SQL语句给表增加字段? 如何分区视图?
小K · 2008-09-26 · via 博客园 - 小K

如何用SQL语句给表增加字段?
ALTER   TABLE   表名   ADD   列名   VARCHAR(20)   NULL
注意只能添加允许为空的字段,添加不为空的会出错
怎么样增加默认值为null,属性为varchar,长度为20的字段?
ALTER   TABLE   表名   ADD   列名   VARCHAR(20)   default   NULL
分区视图 
create   table   [2002年数据]   (编号   int,年   int   check(年=2002)   default   2002,数据   int,primary   key(编号,年))     
create   table   [2003年数据]   (编号   int,年   int   check(年=2003)   default   2003,数据   int,primary   key(编号,年)) 
  
create   view   所有数据   as 
select   *   from   [2002年数据]   
union   all 
select   *   from   [2003年数据]   
go


alter table byf01 add B01_05 [decimal](6, 4) NULL