浅谈IBM DB2数据库如何迁移问题(2)_SQL SERVER数据库_黑客防线网安服务器维护基地--Powered by WWW.RONGSEN.COM.CN

浅谈IBM DB2数据库如何迁移问题(2)

作者:黑客防线网安SQL维护基地 来源:黑客防线网安SQL维护基地 浏览次数:0

本篇关键词:迁移问题如何数据库
黑客防线网安网讯:   清单2. 测试过程 TRUNCATE_TABLE  /* create and insert some values into the table tab1 */   CREATE TABLE tab1 (col1 INTEGER NOT NULL PRIMARY KEY, col2 VARCHAR(15) )   DB...

   清单2. 测试过程 TRUNCATE_TABLE


  /* create and insert some values into the table tab1 */
  CREATE TABLE tab1 (col1 INTEGER NOT NULL PRIMARY KEY, col2 VARCHAR(15) )
  DB20000I The SQL command completed successfully.
  INSERT INTO tab1 VALUES ( 1, 'some data' ), ( 2, NULL )
  DB20000I The SQL command completed successfully.
  /* verify the current contents of table tab1 */
  SELECT * FROM tab1
  COL1 COL2
  ----------- ---------------
  1 some data
  2 -
  2 record(s) selected.
  /* Call the truncate stored procedure for the DB2INST1 schema, and the table tab1 */
  CALL truncate('DB2INST1', 'tab1')
  Return Status = 0
  /* Verify that the table contents have been truncated. */
  SELECT * FROM tab1
  COL1 COL2
  ----------- ---------------
  0 record(s) selected.
  /* Insert some new values into the tab1 table */
  INSERT INTO tab1 VALUES ( 2, 'some new data' ), ( 3, NULL )
  DB20000I The SQL command completed successfully.
  SELECT * FROM tab1
  COL1 COL2
  ----------- ---------------
  2 some new data
  3 -
  2 record(s) selected.
  /* Call the truncate procedure with a NULL schema */
  CALL truncate(NULL, 'tab1')
  Return Status = 0
  /* Verify that the table contents have been truncated. */
  SELECT * FROM tab1
  COL1 COL2
  ----------- ---------------
  0 record(s) selected.


  Sybase 的 host_name 函数

  Sybase 数据库中的 host_name( ) 函数返回的是 客户机进程(非 Adaptive Server 进程)的当前主机名也就是运行该应用程序的计算机的主机名而非数据库服务器的主机名

  清单3 中展示了用户定义函数 HOST_NAME 的签名

    黑客防线网安服务器维护方案本篇连接:http://www.rongsen.com.cn/show-10871-1.html
网站维护教程更新时间:2012-03-21 03:11:32  【打印此页】  【关闭
我要申请本站N点 | 黑客防线官网 |  
专业服务器维护及网站维护手工安全搭建环境,网站安全加固服务。黑客防线网安服务器维护基地招商进行中!QQ:29769479

footer  footer  footer  footer