Advertisement
jargon

Roe SQLite Example

Sep 9th, 2022
3,848
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.77 KB | None | 0 0
  1. PRAGMA foreign_keys = 0;
  2.  
  3. CREATE TABLE sqlitestudio_temp_table AS SELECT *
  4.                                           FROM combat;
  5.  
  6. DROP TABLE combat;
  7.  
  8. CREATE TABLE combat (
  9.     contact_id    INTEGER PRIMARY KEY,
  10.     piercing_stat FLOAT,
  11.     armored_stat  FLOAT,
  12.     evasion_stat  FLOAT,
  13.     ""
  14. );
  15.  
  16. INSERT INTO combat (
  17.                        contact_id,
  18.                        piercing_stat,
  19.                        armored_stat,
  20.                        evasion_stat
  21.                    )
  22.                    SELECT contact_id,
  23.                           piercing_stat,
  24.                           armored_stat,
  25.                           evasion_stat
  26.                      FROM sqlitestudio_temp_table;
  27.  
  28. DROP TABLE sqlitestudio_temp_table;
  29.  
  30. PRAGMA foreign_keys = 1;
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement