Hi Friends:
Is there a way to know the structure of a MySql table ?
Regards and thanks in davance
With SQLRDD its DbStruct()Armando wrote:Is there a way to know the structure of a MySql table ?
FUNCTION MAIN()
LOCAL oCat
LOCAL i, j
oCat = CREATEOBJECT( "ADOX.Catalog" )
oCat:ActiveConnection = "your connection string"
FOR i = 0 TO oCat:Tables:Count() - 1
? oCat:Tables( i ):Name
?
FOR j = 0 TO oCat:Tables( i ):Columns:Count() - 1
? SPACE( 4 ) + oCat:Tables( i ):Columns( j ):Name
NEXT
?
NEXT
RETURN NIL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 68 guests