File: sql.xml

package info (click to toggle)
phing 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,368 kB
  • sloc: php: 59,821; xml: 9,767; sql: 78; makefile: 39; sh: 14
file content (22 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (2)
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>