Guest User

Untitled

a guest
Jan 6th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. create table testing(num int, dt date, istrue boolean);
  2.  
  3. insert into testing values (1, '2018-01-01', True);
  4.  
  5. UPDATE testing SET num = 2, istrue = null AND dt = '2018-01-01';
  6.  
  7. UPDATE testing SET num = 2, istrue = null WHERE dt = '2018-01-01';
  8.  
  9. null AND dt = '2018-01-01'
  10.  
  11. null AND dt = '2018-01-01'
  12.  
  13. UPDATE
  14. testing
  15. SET
  16. num = 2,
  17. istrue = ( null AND (dt = '2018-01-01') )
  18. ;
Add Comment
Please, Sign In to add comment