sqlserver中如何用SQL語句寫檔案

2021-05-01 10:02:56 字數 309 閱讀 3060

1樓:留小琴

在我的機器上測試成功,我的是sql 2005,有資料。sql預設安裝下,你要先執行下面的語句。請在測試前刪除test.exe。請用寫字板開啟test.txt。

sp_configure 'show advanced options', 1;

goreconfigure;

go-- enable the ole automation procedures

sp_configure 'ole automation procedures', 1;

goreconfigure;go

如何用sqlserver的,如何用SQL server的 t sql 語句建立一個表格

create table student studentname varchar 10 primary key,age int 參照上邊的建立看這個解釋 create 建立 table 表 student 名字為student studentname 欄位名為studentname varchar ...

sql server 2019資料庫中如何對從資料庫中查出的資料結果進行四捨五入

round 函式 語句select round 123.4545,2 結果 123.4500 round 列,保留位數 請問關於sql server 2005 四捨五入問題 當 length 為負數時 則按 length 所指定的在小數點的左邊四捨五入。round 999.99,1 1000 對的,...

mysql中如何在控制檯列印資訊 就如sqlserver裡的print那樣

1 只能用 select.就像下面這個 hello world 一樣,mysql delimiter mysql create procedure helloworld,begin,select hello world end query ok,0 rows affected 0.00 sec my...