|
最近我也遇到类似问题,感谢大家指点,现附上Update SQL:
-- 12211 Nov-13
UPDATE gl_balances
SET begin_balance_cr = begin_balance_cr - 106.23
,quarter_to_date_cr = quarter_to_date_cr - 106.23
,project_to_date_cr = project_to_date_cr - 106.23
WHERE set_of_books_id = ***
and code_combination_id = 51302
and period_name = 'Nov-13';
-- 12211 Dec-13
UPDATE gl_balances
SET begin_balance_cr = begin_balance_cr - 106.23
,quarter_to_date_cr = quarter_to_date_cr - 106.23
,project_to_date_cr = project_to_date_cr - 106.23
WHERE set_of_books_id = ***
and code_combination_id = 51302
and period_name = 'Dec-13';
-- 60611 Nov-13
UPDATE gl_balances
SET begin_balance_dr = begin_balance_dr - 106.23
,quarter_to_date_dr = quarter_to_date_dr - 106.23
,project_to_date_dr = project_to_date_dr - 106.23
WHERE set_of_books_id = ***
and code_combination_id = 49500
and period_name = 'Nov-13';
-- 60611 Dec-13
UPDATE gl_balances
SET begin_balance_dr = begin_balance_dr - 106.23
,quarter_to_date_dr = quarter_to_date_dr - 106.23
,project_to_date_dr = project_to_date_dr - 106.23
WHERE set_of_books_id = ***
and code_combination_id = 49500
and period_name = 'Dec-13';
/
|
|