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

礼品卡导入可用

时间:2014-10-21 19:05:01      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:io   sp   数据   2014   on   bs   as   数据库   type   

INSERT INTO gift_certificate (giftCertificateNo,purchaser,recipient,isSentByEmail,giftCertAmt,remainedAmt,giftType,STATUS,VERSION,m1Amt,m2Amt,m3Amt,m4Amt,m5Amt,m6Amt,m7Amt,m8Amt,m9Amt,m10Amt,m11Amt,m12Amt,customerId,registerTime)VALUES(‘16940084‘,‘N/A‘,‘N/A‘,1,500,500,1,1,0,30,0,0,0,0,0,0,0,0,0,0,0,-2,‘2014-10-09 14:00:00‘);
INSERT INTO gift_certificate (giftCertificateNo,purchaser,recipient,isSentByEmail,giftCertAmt,remainedAmt,giftType,STATUS,VERSION,m1Amt,m2Amt,m3Amt,m4Amt,m5Amt,m6Amt,m7Amt,m8Amt,m9Amt,m10Amt,m11Amt,m12Amt,customerId,registerTime)VALUES(‘ab74448351‘,‘N/A‘,‘N/A‘,1,500,500,1,1,0,30,0,0,0,0,0,0,0,0,0,0,0,-2,‘2014-10-09 14:00:00‘);

 

查询数据库

SELECT COUNT(giftCertificateId) AS num FROM gift_certificate WHERE giftCertificateId >= 22116 ;

 

INSERT INTO coupon(promoRuleId,couponNo,isSent,remainedTimes,STATUS,VERSION)VALUES(38,‘yhq510528967‘,0,1,1,0);

 

更新某个字段

UPDATE coupon SET promoRuleId=79 WHERE couponNo=‘yhq511220091‘;

礼品卡导入可用

标签:io   sp   数据   2014   on   bs   as   数据库   type   

原文地址:http://www.cnblogs.com/bluewelkin/p/4040818.html

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