Posted by Simon on 11/09/45 11:18
> CREATE DATABASE `gamoto` ... is not the same as
>> CREATE DATABASE 'gamoto'
>>
>> in the script it should be
>>
>> CREATE DATABASE gamoto
>>
>> and
>> USE gamoto.
>
> Ahhhhh ... I see...
> So that's my problem... I thought that I can have this ` ` quotes in the
> script.
> Because the SQL code I am trying to run through php is an export from
> phpmyadmin or a Buckup from MySQL Admin....
>
> So I though it should work as it is if you run it correclty...
> But still if PHPmyadmin runs the code... it meens that I can run it some
> how ... :S
>
> Strange... thanks anyway...
> Until I get an answer I am going to remove this ` ` quotes ;)
> Thanks
I don't know the answer myself, it is either an error in the way phpMyAdmin
displays the SQL or the actual character been used in their query.
But I know that only CREATE and USE cannot have quotes (" and '), all the
others should work just fine.
Simon
Navigation:
[Reply to this message]
|