Create Table DDL sample(TSQL)
来源:互联网 发布:剑三成男捏脸数据图片 编辑:程序博客网 时间:2024/05/17 03:14
IF EXISTS (SELECT 1 FROM sysobjects o, sysusers u WHERE o.uid=u.uid AND o.name = 'Table_Name' AND u.name = 'dbo' AND o.type = 'U')
drop table Table_Name
IF (@@error != 0)
BEGIN
PRINT "Error CREATING table 'databasename.dbo.tablename'"
SELECT syb_quit()
END
go
create table Table_Name(
key_date int not null ,
cusip char(9) not null ,
description char(60) null ,
security_type char(2) null ,
security_literal char(4) null ,
group_code char(1) null ,
class_code char(3) null ,
tax_status char(1) null ,
coupon float(16) null ,
schedule char(2) null ,
payment_day int null ,
first_coupon_date int null ,
next_coupon_date int null ,
dated_date int null ,
maturity_date int null ,
market_price float(16) null ,
market_price_nuv float(16) null ,
hard_call_code char(1) null ,
hard_call_date int null ,
hard_call_price float(16) null ,
optional_call_code char(1) null ,
optional_call_date int null ,
optional_call_price float(16) null ,
prerefunded_date int null ,
prerefunded_price float(16) null ,
put_code char(1) null ,
put_date int null ,
put_price float(16) null ,
muni_pcall_date int null ,
factor float(16) null ,
insurance char(5) null ,
cusip_state char(2) null ,
wac float(16) null ,
psa_sign char(1) null ,
psa int null ,
cpr_sign char(1) null ,
cpr float(16) null ,
call_type_code char(2) null ,
call_type_1 char(1) null ,
call_type_2 char(1) null ,
subject_amt_code int null ,
tax_muni_code int null ,
current_call_code int null ,
crossover_code int null ,
nuveen_code int null ,
yankee_bond_code int null ,
sink_fund_code int null ,
float_lookup_code int null ,
oid_code int null ,
dummy_cusip_code int null ,
def_bond_code int null ,
def_bond_int_code int null ,
call_type_3 char(2) null ,
dollar_dividend float(16) null ,
moody_rating char(10) null ,
moody_rating_no float(16) null ,
moody_chg_code int null ,
sp_rating char(10) null ,
sp_rating_no float(16) null ,
sp_chg_code int null ,
fitch_rating char(10) null ,
fitch_rating_no float(16) null ,
fitch_chg_code int null ,
moody_underlying_rating char(10) null ,
moody_underlying_rating_no float(16) null ,
moody_underlying_chg_code int null ,
sp_underlying_rating char(10) null ,
sp_underlying_rating_no float(16) null ,
sp_underlying_chg_code int null ,
fitch_underlying_rating char(10) null ,
fitch_underlying_rating_no float(16) null ,
fitch_underlying_chg_code int null ,
foreign_indicator char(1) null ,
isin char(12) null ,
ex_dividend_date int null ,
dividend_date int null ,
currency_code char(2) null ,
country_code char(3) null ,
unit_cash_value float(16) null ,
purpose_type_code char(3) null ,
purpose_class_code char(4) null ,
purpose_sub_class_code char(4) null ,
insurance_secondary_primary char(60) null ,
insurance_secondary_secondary char(60) null ,
amt_ind char(1) null ,
d360_365_ind char(1) null ,
fx_tips_factor float(16) null
)
go
- Create Table DDL sample(TSQL)
- DB2 mainframe create table DDL
- SQL---DDL---创建表CREATE TABLE语句总结
- Create DDL table in SQL Server 2005 to audit DDL trigger activity
- Dynamically Create Chart Sample
- create table
- CREATE TABLE
- CREATE TABLE
- create table
- Create Table
- Create table
- create table
- CREATE TABLE
- create table
- create table
- CREATE TABLE
- CREATE TABLE
- CREATE TABLE
- 18分钟计划管理你一天
- RMAN
- Android开发:日期格式化
- 题目1001:A+B for Matrices
- NS2跨层设计
- Create Table DDL sample(TSQL)
- android 组件内部实现触摸事件,更改背景
- apache cxf解析webservice
- 给软件工程师的自学建议
- gcc -I -L -l区别
- 每个程序员都应该知道的那些事儿
- android中Preference(首选项)2--(组织首选项)
- Failed to create the Java Virtual Machine
- Pthreads并行编程之spin lock与mutex性能对比分析