Changes between Version 10 and Version 11 of Docs/Prog/Manual/ApplicationLibraries/Database/MySQLclient


Ignore:
Timestamp:
02/05/13 21:51:33 (12 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/Database/MySQLclient

    v10 v11  
    101101
    102102This example runs from the command line and if no arguments are specified assumes server at 192.168.1.106 user name "pi" password "raspberry" database named "test" and query to show all records of the database table "abc".
     103
     104
     105{{{
     106$ ./mysqltest 192.168.1.106 pi raspberry test "select * from abc;"
     107**srv [192.168.1.106] user [pi] pass [raspberry] db [test] q [select * from abc;]
     108***
     109affected -1
     110P_Id,LastName,FirstName,Address,City,
     1112,Hancock,(null),(null),Chicago,
     112$
     113}}}
     114
     115{{{
     116$ ./mysqltest 192.168.1.106 pi raspberry test "insert into abc (P_Id,LastName,FirstName,Address,City) values (5,'ZZZZZ','ABCD','123 Oak st','Somewhere');"
     117**srv [192.168.1.106] user [pi] pass [raspberry] db [test] q [insert into abc (P_Id,LastName,FirstName,Address,City) values (5,'ZZZZZ','ABCD','123 Oak st','Somewhere');]
     118***
     119affected 1
     120$  $ ./mysqltest 192.168.1.106 pi raspberry test "select * from abc;"
     121**srv [192.168.1.106] user [pi] pass [raspberry] db [test] q [select * from abc;]
     122***
     123affected -1
     124P_Id,LastName,FirstName,Address,City,
     1252,Hancock,(null),(null),Chicago,
     1265,ZZZZZ,ABCD,123 Oak st,Somewhere,
     127$
     128
     129}}}