欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
sybase數據庫導出表結構

   在不同平臺上導數據時(shí),只能用BCP命令,但是BCP命令不能導出數據庫表結構,所以需進(jìn)行數據庫表結構的導出。在sybase12.5版本以上,可以用如下方式導出表結構:ddlgen –Usa –Pxxx –Ddb_name –Sxxx:port –Ooutput_file其中db_name指所要導出的數據庫名。********************************************低于sybase12.5版本的,得進(jìn)行執行腳本的方式導出表結構。腳本文件內容如下:use sybsystemprocsgoif object_id('dbo.sp_ddl_create_table') is not nulldrop procedure sp_ddl_create_tableprint "Dropping sp_ddl_create_table"gocreate proc sp_ddl_create_tableas-- Creates the DDL for all the user tables in the-- current databaseselect right('create table ' + so1.name + '(' + '', 255 * ( abs( sign(sc1.colid - 1) - 1 ) ) )+sc1.name + ' ' +st1.name + ' ' +substring( '(' + rtrim( convert( char, sc1.length ) ) + ') ', 1,patindex('%char', st1.name ) * 10 ) +substring( '(' + rtrim( convert( char, sc1.prec ) ) + ', ' + rtrim(convert( char, sc1.scale ) ) + ') ' , 1, patindex('numeric', st1.name ) * 10 ) +substring( 'NOT NULL', ( convert( int, convert( bit,( sc1.status & 8 ) ) ) * 4 ) + 1,8 * abs(convert(bit, (sc1.status & 0x80)) - 1 ) ) +right('identity ', 9 * convert(bit, (sc1.status & 0x80)) ) +right(',', 5 * ( convert(int,sc2.colid) - convert(int,sc1.colid) ) ) +right(' )' + 'go' + '' + '', 255 * abs( sign( ( convert(int,sc2.colid) - convert(int,sc1.colid) ) ) -1 ) )from sysobjects so1,syscolumns sc1,syscolumns sc2,systypes st1where so1.type = 'U'and sc1.id = so1.idand st1.usertype = sc1.usertypeand sc2.id = sc1.idand sc2.colid = (select max(colid)from syscolumnswhere id = sc1.id)order by so1.name, sc1.colidgoif object_id('dbo.sp_ddl_create_table') is not nullbegingrant execute on sp_ddl_create_table to publicprint "Created sp_ddl_create_table"endelseprint "Failed to create sp_ddl_create_table"go**************************************************************查看具體某數據庫表結構方法如下,以查看nbcredit數據庫表結構為例:編輯腳本文件script.txt,保存在c:\,內容如下:use nbcreditgosp_ddl_create_tablego然后執行以下語(yǔ)名:isql –Usa –Pxxx –b –i script.txt –o scriptout.txt其中scriptout.txt文件的內容即為整個(gè)數據庫表結構。
 
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
總結工作中的Sybase數據庫(二)
如何利用Convert將時(shí)間轉換為字符串形式!
分頁(yè)存儲過(guò)程(sql2000通用型)
簡(jiǎn)單的3個(gè)SQL視圖搞定所有SqlServer數據庫字典
Sybase中的日期時(shí)間函數_龍的天空
Sybase數據庫備份方案
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久