in reply to Long file names in .dbf databases
And this should work fine.$dbname = "USER"; $sql = "select USERNAME from $dbname";
And of cause it will not work, because the SQL string becomes$dbname = "User Names Database"; $sql = "select USERNAME from $dbname";
which is an invalid SQL statement.select USERNAME from User Names Database
And this should work because the new SQL string becomes$dbname = "User Names Database"; $tblname = "'" . $dbname . "'"; # or $tblname = '"' . $dbname . '"'; $sql = "select USERNAME from $tblname";
I think this might resolve the long filename issue on Windows machines.select USERNAME from 'User Names Database'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Long file names in .dbf databases
by talwyn (Monk) on Oct 07, 2003 at 15:36 UTC |