SQLITE 3 - как посмотреть все колонки таблицы
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2025
SQLITE 3 - как посмотреть все колонки таблицы
Вывести все колонки и их параметры таблицы inbounds:
sqlite> PRAGMA table_info(inbounds); 0|id|INTEGER|0||1 1|user_id|INTEGER|0||0 2|up|INTEGER|0||0 3|down|INTEGER|0||0 4|total|INTEGER|0||0 5|remark|TEXT|0||0 6|enable|numeric|0||0 7|expiry_time|INTEGER|0||0 8|listen|TEXT|0||0 9|port|INTEGER|0||0 10|protocol|TEXT|0||0 11|settings|TEXT|0||0 12|stream_settings|TEXT|0||0 13|tag|TEXT|0||0 14|sniffing|TEXT|0||0 15|allocate|TEXT|0||0
либо такой командой:
sqlite> SELECT sql FROM sqlite_master WHERE tbl_name = 'inbounds'; CREATE TABLE `inbounds` (`id` integer PRIMARY KEY AUTOINCREMENT,`user_id` integer,`up` integer,`down` integer,`total` integer,`remark` text,`enable` numeric,`expiry_time` integer,`listen` text,`port` integer,`protocol` text,`settings` text,`stream_settings` text,`tag` text,`sniffing` text,`allocate` text,CONSTRAINT `uni_inbounds_tag` UNIQUE (`tag`))