国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

rowscopy, 拷貝帶有自增字段的表

2024-07-21 02:33:59
字體:
來源:轉載
供稿:網友

 ?。?清除本地數據
  
  ls_sql1 = "TRUNCATE TABLE" + ls_table [1]
   execute IMMEDIATE :ls_sql1 using sqlca;
  
 ?。?//打開可以插入自增,顯示插入自增字段的值
  
   ls_sql1 = "SET IDENTITY_INSERT " + ls_table [1] + " on"
   execute IMMEDIATE :ls_sql1 using sqlca;
  
  3.構造數據窗口,或datastore
  
  4.wf_set_iden_off_1(dw_1) //關掉本地datastore的自增
  
  wf_set_iden_off_1內容:
  
  //將指定datastore 的自增字段設置為 off
  
  string ls_colcount
  long ll_colcount, i
  string ls_ColName
  
  ls_colcount = ar_ds.Describe("DataWindow.Column.Count")
  
  if integer (ls_colcount) > 0 then
   ll_colcount = integer (ls_colcount)
  else
   return
  end if
  
  string ls_on, ls_err
  
  for i = 1 to ll_colcount
   ls_ColName = ar_ds.Describe("#" + string(i) +".name")
   ls_on = ar_ds.Describe("#" + string(i) +".Identity")
   if ls_on = 'yes' then
  ar_ds.modify (ls_ColName + ".Identity = 'no'" )
   end if
  next
  
 ?。?開始copy,
  
  6.update
  
  結束

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 余姚市| 民县| 永和县| 瓮安县| 海口市| 长沙市| 长岭县| 尼玛县| 福安市| 裕民县| 芜湖县| 米易县| 临夏县| 磴口县| 五大连池市| 阿鲁科尔沁旗| 阿克苏市| 霍城县| 万宁市| 泽普县| 钟山县| 枣庄市| 宁化县| 格尔木市| 银川市| 乌拉特前旗| 家居| 焦作市| 定西市| 珲春市| 松滋市| 类乌齐县| 郸城县| 甘洛县| 宣汉县| 辉县市| 武宁县| 博客| 榆树市| 灵璧县| 孟连|