dfdf

C code posted
created at 13 Jan 14:28

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24


BEGIN TRANSACTION;
/*
SET SCHEMA 'pppaustralia';
Update task SET assigned_user_id = (SELECT id FROM common.tg_user WHERE user_name='julia.hicks') 
WHERE id in (30160,30161,30162,30411,30412,30413,30414,30415,30416,30418,30419,30420,30893,30894,30928,30929,31214,31215,31507,
31508,31875,31876,32190,32191,32517,32518,32635,32885,32886,33567,33568,33887,33888,34569,34669,34670,34880,34885,35663,35664,36032,36033,36303,
36304,36624,36625,36969,36970,37337,37425,37426,37731,37732,38007,38144,38145,38496,38497,38926,38927,39378,39379,39644,39645,39646,39647,39648,
39649,39650,39769,39770,40022,40026)
AND assigned_user_id = (SELECT id FROM common.tg_user WHERE user_name='peter.brock')
AND  book_id IN (SELECT b.id FROM BOOK b INNER JOIN PROJECT p ON b.project_id = p.id WHERE p.project_name= 'Long Bay Hospital');
*/

SET SCHEMA 'pppaustralia';
select assigned_user_id,created_by_user_id,* from task where id in (30160,30161,30162,30411,30412,30413,30414,30415,30416,30418,30419,30420,30893,30894,30928,30929,31214,31215,31507,
31508,31875,31876,32190,32191,32517,32518,32635,32885,32886,33567,33568,33887,33888,34569,34669,34670,34880,34885,35663,35664,36032,36033,36303,
36304,36624,36625,36969,36970,37337,37425,37426,37731,37732,38007,38144,38145,38496,38497,38926,38927,39378,39379,39644,39645,39646,39647,39648,
39649,39650,39769,39770,40022,40026)
AND assigned_user_id = (SELECT id FROM common.tg_user WHERE user_name='peter.brock')
AND  book_id in (select b.id from BOOK b inner join PROJECT p ON b.project_id = p.id where p.project_name= 'Long Bay Hospital');

ROLLBACK TRANSACTION; --Any error
COMMIT TRANSACTION; -- Upon ok
1.62 KB in 5 ms with coderay