码迷,mamicode.com
首页 > 其他好文 > 详细

table insert

时间:2015-03-30 13:12:28      阅读:116      评论:0      收藏:0      [点我收藏+]

标签:

B C D E  
TABLE1     入力内容 insert into TABLE1 values(
項目1 ITEM1 CHAR UT001 ‘UT001‘,
項目2 ITEM2 NUMBER 2 2,
項目3 ITEM3 VARCHAR 1675186196 ‘1675186196‘,

="insert into "&B8&" values("

=IF(ISERROR(SEARCH("NUM",D9)),IF(ISERROR(SEARCH("DATE",D9)),"‘"&E9&"‘,","to_date("&"‘"&E9&"‘,‘yyyy-mm-dd hh24:mi:ss‘"&"),"),IF(E9="","null,",E9&","))

=IF(ISERROR(SEARCH("NUM",D10)),IF(ISERROR(SEARCH("DATE",D10)),"‘"&E10&"‘,","to_date("&"‘"&E10&"‘,‘yyyy-mm-dd hh24:mi:ss‘"&"),"),IF(E10="","null,",E10&","))

=IF(ISERROR(SEARCH("NUM",D11)),IF(ISERROR(SEARCH("DATE",D11)),"‘"&E11&"‘,","to_date("&"‘"&E11&"‘,‘yyyy-mm-dd hh24:mi:ss‘"&"),"),IF(E11="","null,",E11&","))

table insert

标签:

原文地址:http://www.cnblogs.com/taobr/p/4377653.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!