GET TABLE STRUCTURE
select COLUMNNAME,COLUMNDATATYPE
FROM sys.systables t, sys.syscolumns
WHERE TABLEID = REFERENCEID and tablename = 'FRIENDS'

Other fields you can use in select
- Columnddefult
- COLUMNDEFAULTID
- AUTOINCREMENTVALUE
- AUTOINCREMENTSTART
- AUTOINCREMENTINC
Inside Netbeans
Expand the node tables under the sample database connection, right-click the node table and select Grab Structure.

In the opened Grab Table dialog box, specify the location on your computer to save the capture file that will be created. Click "Save."
The grab file writes the table definition for the selected table. Expand the APP node diagram in the Contact DB database connection, right-click the node table and select Restore Table to open the Create Recreation Table dialog box.

" " , CUSTOMER, "", " ".

GET TABLES
.
select * from SYS.SYSTABLES;

TABLENAME
select TABLENAME from SYS.SYSTABLES where TABLETYPE='T'

Derby