query examples
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Thu, 21 Apr 2016 04:52:24 +0000 (06:52 +0200)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Thu, 21 Apr 2016 04:52:24 +0000 (06:52 +0200)
MyBatis/MyBatis-Spring-ReuseBatchExecutor/src/main/resources/de/example/mybatis/repository/mapper/AdMapper.xml

index 14ded5d..bf0cf0b 100644 (file)
         flushCache="false" useCache="true" timeout="10000" statementType="PREPARED">
                select * FROM ad
        </select>
+       
+       
+       
+INSERT INTO Customers
+       (CustomerName, ContactName, Address, City, PostalCode, Country)
+VALUES ('Cardinal','Tom B. Erichsen','Skagen 21','Stavanger','4006','Norway');
+
+
+DELETE FROM Customers
+WHERE CustomerName='Alfreds Futterkiste' AND ContactName='Maria Anders';
+
+
+UPDATE Customers
+SET ContactName='Alfred Schmidt', City='Hamburg'
+WHERE CustomerName='Alfreds Futterkiste';
+
+       
 </mapper>
\ No newline at end of file