Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MySQL question
Message
 
 
To
11/02/2011 14:47:13
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01499811
Message ID:
01499816
Views:
118
This message has been marked as the solution to the initial question of the thread.
>I'm using VFP with MySQL database.
>
>I want to modify the table, the original code:
>
>
>C:\Program Files\MySQL\MySQL Server 5.1\bin\
>mysql -umydata -pmypassword 
>use mydatabase;
>alter table customer ADD email_add VARCHAR(45);
>
>
>in PRG:
>
>
>lcOldDir=Fullpath(Curdir())
>CD "C:\Program Files\MySQL\MySQL Server 5.1\bin\"
>mcode1="use mydatabase;"
>mcode2="alter table customer ADD email_add VARCHAR(45);"
>RUN mysql -umydata -pmypassword -e %mcode1%
>cd (lcOldDir)
>
>
>I don't know how to put the two lines command.
>
>any suggestion?
>
>thanks for the help.

What if you put both commands into mCode just separated with chr(13)+chr(10) and execute them at once?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform