From 117c5a7052778e90506c583050a024b42aa2b9c5 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sun, 2 Mar 2008 20:17:43 -0500 Subject: Add mysql c example. --- src/mysqlerl.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/mysqlerl.c b/src/mysqlerl.c index 42fa3dc..f8970d1 100644 --- a/src/mysqlerl.c +++ b/src/mysqlerl.c @@ -190,18 +190,19 @@ handle_query(MYSQL *dbh, ETERM *cmd) } /* - -6 > odbc:param_query(Ref,"INSERT INTO EMPLOYEE (NR, FIRSTNAME, " - "LASTNAME, GENDER) VALUES(?, ?, ?, ?)", - [{sql_integer,[2,3,4,5,6,7,8]}, - {{sql_varchar, 20}, - ["John", "Monica", "Ross", "Rachel", - "Piper", "Prue", "Louise"]}, - {{sql_varchar, 20}, - ["Doe","Geller","Geller", "Green", - "Halliwell", "Halliwell", "Lane"]}, - {{sql_char, 1}, ["M","F","M","F","T","F","F"]}]). - {updated, 7} + * http://dev.mysql.com/doc/refman/5.1/en/mysql-stmt-execute.html + * + * 6 > odbc:param_query(Ref,"INSERT INTO EMPLOYEE (NR, FIRSTNAME, " + * "LASTNAME, GENDER) VALUES(?, ?, ?, ?)", + * [{sql_integer,[2,3,4,5,6,7,8]}, + * {{sql_varchar, 20}, + * ["John", "Monica", "Ross", "Rachel", + * "Piper", "Prue", "Louise"]}, + * {{sql_varchar, 20}, + * ["Doe","Geller","Geller", "Green", + * "Halliwell", "Halliwell", "Lane"]}, + * {{sql_char, 1}, ["M","F","M","F","T","F","F"]}]). + * {updated, 7} */ void -- cgit v1.2.3