3

How do I get all the field names in a Table in Microsoft Access using JET SQL?

Thanks all

Abs
  • 56,052
  • 101
  • 275
  • 409

2 Answers2

1

I was making using of the ODBC extension in PHP and it has a function to do this!

In case anyone needs this in the future its, odbc_tables!

Abs
  • 56,052
  • 101
  • 275
  • 409
0

You can write a SQL query like this:

SELECT * FROM [sometablename] WHERE 1<>1 or
SELECT * FROM [sometablename] WHERE 1=2 

This will result no row data but with field names.

srn
  • 614
  • 3
  • 15
Hemu
  • 13
  • 5