表的匯入,匯出

2021-05-04 17:11:36 字數 373 閱讀 8694

if  exists (select * from dbo.sysobjects where id = object_id(n'[dbo].[librarycheck]') and objectproperty(id, n'isusertable') = 1)

drop table librarycheck;

select  * into librarycheck

from  opendatasource(

'sqloledb',

'data source=.;user id=sa;password=sa'

).library.dbo.librarycheck

如果要匯出到文字,就應用 bulk insert 與 bcp等方法

mysql 匯入匯出表 mysql 匯出,匯入資料

windows下匯出mysql資料庫中的資料 1.mysql桌面管理工具,使用 select into outfile 語句匯出資料 1.1 進入管理工具後,選中要匯出的資料庫,右擊,選擇命令列頁面進入 1.2 輸入select from 表名into outfile 檔名 select from ...

PostgreSQL表的匯入匯出

命令操作 資料的匯出 pg dump u postgres 使用者名稱 t 表名 資料庫名 預設時同使用者名稱 c fulldb.sql 資料的匯入 psql u postgres 使用者名稱 d 資料庫名 預設時同使用者名稱 c fulldb.sql pgadmin操作 資料的匯出 在庫名上右擊 ...

Oracle表的匯入匯出

匯出 exp exp 使用者名稱 密碼 例項名 file 匯出的dmp檔案存放路徑 log 匯出日誌存放路徑 exp hr 123456 orcl file c users administrator desktop exp exphr.dmp log c users administrator d...