4.1 SQLite 存儲類型
查詢是否插入成功
? 1 2 sqlite> SELECT * FROM COMPANY; 1|Paul|32|California|20000.0用第二種方法多插入幾個數據:
? 1 2 3 4 5 6 7 8 9 10 11 12 13 sqlite> INSERT INTO COMPANY VALUES (2, 'Allen', 25, 'Texas', 15000.00 ); sqlite> INSERT INTO COMPANY VALUES (3, 'Teddy', 23, 'Norway', 20000.00 ); sqlite> INSERT INTO COMPANY VALUES (4, 'Mark', 25, 'Rich-Mond ', 65000.00 ); sqlite> INSERT INTO COMPANY VALUES (5, 'David', 27, 'Texas', 85000.00 ); sqlite> INSERT INTO COMPANY VALUES (6, 'Kim', 22, 'South-Hall', 45000.00 ); sqlite> SELECT * FROM COMPANY; 1|Paul|32|California|20000.0 7|James|24|Houston|10000.0 2|Allen|25|Texas|15000.0 3|Teddy|23|Norway|20000.0 4|Mark|25|Rich-Mond |65000.0 5|David|27|Texas|85000.0 6|Kim|22|South-Hall|45000.0運算符: + - * / %
? 1 2 3 4 5 6 7 8 9 10 sqlite> select 4 + 2; 6 sqlite> select 4 - 2; 2 sqlite> select 4 * 2; 8 sqlite> select 4 / 2; 2 sqlite> select 4 % 2; 0