insert.sql 491 B

1234567891011121314151617181920212223242526
  1. /* postgres can not */
  2. /* syntax version 1 */
  3. use plato;
  4. pragma OrderedColumns;
  5. insert into Input
  6. select key, subkey, value from Input;
  7. commit;
  8. select * from Input order by subkey, key;
  9. insert into Output
  10. select * from Input order by subkey, key;
  11. commit;
  12. select * from Output order by subkey, key;
  13. insert into Output with truncate
  14. select key,value,subkey from Input order by subkey, key;
  15. select * from Output order by subkey, key;
  16. commit;
  17. select * from Output order by subkey, key;