in reply to Generate A DDL From Access
$dbh->column_info() doesn't provide index, pk information.
But $dbh->statistics_info() will return it.
I am using it through DBD::ADO and it seems working.
creates "tabel1" with primary key and column_info() returns information like thiscreate table test1 (test1 varchar(14)); create index test1_pk on test1 (test1);
And statistics_info() will return index information like this.###Table: test1, test1, VarChar, 14,
I hope this helps you.###Indeces: test1_pk( btree,non unique) columns=1:test1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Generate A DDL From Access
by Limbic~Region (Chancellor) on Mar 03, 2012 at 17:00 UTC | |
by remiah (Hermit) on Mar 04, 2012 at 01:54 UTC |