Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SHOW COLUMNS Command for HSQLDB

Tags:

hsqldb

Is there an HSQLDB equivalent for the MYSQL SHOW COLUMNS from TABLE command?

like image 300
c12 Avatar asked Feb 24 '26 11:02

c12


2 Answers

HSQLDB does not have separate commands for showing tables, columns or other database objects.

You use SELECT * FROM INFORMATION_SCHEMA.COLUMNS and various other tables in the INFORMATION_SCHEMA for such purposes.

http://hsqldb.org/doc/2.0/guide/databaseobjects-chapt.html#dbc_information_schema

like image 181
fredt Avatar answered Feb 27 '26 01:02

fredt


This is the query that you need.

SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '<your schema>' AND TABLE_NAME = '<name table or view>';

like image 42
Diego Alonso Avatar answered Feb 27 '26 02:02

Diego Alonso