You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATETABLECOMPANY(
ID INTPRIMARY KEYNOT NULL,
NAME TEXTNOT NULL,
AGE INTNOT NULL,
ADDRESS CHAR(50),
SALARY REAL
);
CREATEINDEXsalary_indexON COMPANY (salary);
CREATEUNIQUE INDEXname_indexON COMPANY (name);
.header on
.mode column
.width 26 8 48
SELECT name, rootpage, sql FROM sqlite_master WHERE type = 'index' AND tbl_name = 'COMPANY';
name rootpage sql
-------------------------- -------- ------------------------------------------------
sqlite_autoindex_COMPANY_1 3
salary_index 6 CREATE INDEX salary_index ON COMPANY (salary)
name_index 7 CREATE UNIQUE INDEX name_index ON COMPANY (name)
The text was updated successfully, but these errors were encountered:
How to reproduce:
SH
SQL
PHP
Actual
Expected
SQLite
The text was updated successfully, but these errors were encountered: