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

用友的凭证update

时间:2015-01-05 18:09:09      阅读:116      评论:0      收藏:0      [点我收藏+]

标签:

select pk_glorgbook from bd_glorgbook where glorgbookcode=‘0100-0001‘;--0001N510000000006K4X
select no,period,year,dr,pk_voucher from gl_voucher where no=‘68‘ and dr=‘0‘ and period=‘01‘ and year=‘2014‘ and 
pk_glorgbook=‘0001N510000000006K4X‘;
update gl_voucher set no=‘69‘ where pk_voucher=‘1162N51000000001YHZ3‘;
update gl_detail set nov=‘69‘where pk_voucher=‘1162N51000000001YHZ3‘;

 

select no,period,year,dr,gl_voucher.explanation, pk_voucher from gl_voucher where no in(‘153‘,‘156‘,‘154‘,‘287‘ )
and dr=‘0‘ and period=‘04‘ and year=‘2014‘ and pk_glorgbook=‘0001N510000000006K4X‘ for update;

 

用友的凭证update

标签:

原文地址:http://www.cnblogs.com/sumsen/p/4203933.html

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