1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<?xml version="1.0"?>
<!-- This is a test script for the SQLExec task. You will
want to modify this for your DB information; the alternative
would be to add many INPUT tasks, but I prefer to keep it simple
for now. -->
<project name="sql-test" default="main">
<target name="main">
<sql
url="mysql://localhost/bookstore"
userid="root"
password=""
print="true">
INSERT INTO author (first_name, last_name) VALUES ('Edward', 'White');
SELECT * FROM author;
DELETE FROM author WHERE first_name = 'Edward' AND last_name = 'White';
</sql>
</target>
</project>
|