aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-03-02 20:17:43 -0500
committerBrian Cully <github.20.shmit@spamgourmet.com>2008-03-02 20:17:43 -0500
commit117c5a7052778e90506c583050a024b42aa2b9c5 (patch)
tree157467bddec67b404fb953ec8561ea3447b24419
parentba80b36476423fa5ceef7ed50406791c40b593f2 (diff)
downloadmysqlerl-117c5a7052778e90506c583050a024b42aa2b9c5.tar.gz
mysqlerl-117c5a7052778e90506c583050a024b42aa2b9c5.zip
Add mysql c example.
-rw-r--r--src/mysqlerl.c25
1 files changed, 13 insertions, 12 deletions
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