Home Blog CV Projects Patterns Notes Book Colophon Search

SQLite Column Types

27 Dec, 2023

SELECT 
  m.name as table_name, 
  p.name as column_name,
  p.*
FROM 
  sqlite_master AS m
JOIN 
  pragma_table_info(m.name) AS p
WHERE
  m.type = 'table' 
ORDER BY 
  m.name, 
  p.cid;

Comments

Be the first to comment.

Add Comment





Copyright James Gardner 1996-2020 All Rights Reserved. Admin.