@@ -223,6 +223,69 @@ try {
223223}
224224```
225225
226+ ** Delete:**
227+ ``` java
228+ import advancedsql.* ;
229+ import advancedsql.query.* ;
230+ import java.sql.SQLException ;
231+
232+ try {
233+ MySQL mySQL = connect();
234+
235+ // Delete
236+ Delete query = mySQL. table(" users" ). delete(). where(" first_name = ?" , " Denzel" );
237+ int execute = query. execute();
238+
239+ // Print query and result.
240+ System . out. println(query);
241+ System . out. println(execute);
242+ } catch (SQLException e) {
243+ e. printStackTrace();
244+ }
245+ ```
246+
247+ ** Truncate:**
248+ ``` java
249+ import advancedsql.* ;
250+ import advancedsql.query.* ;
251+ import java.sql.SQLException ;
252+
253+ try {
254+ MySQL mySQL = connect();
255+
256+ // Truncate table
257+ Truncate query = mySQL. table(" users" ). truncate();
258+ Boolean execute = query. execute();
259+
260+ // Print query and result.
261+ System . out. println(query);
262+ System . out. println(execute);
263+ } catch (SQLException e) {
264+ e. printStackTrace();
265+ }
266+ ```
267+
268+ ** Drop:**
269+ ``` java
270+ import advancedsql.* ;
271+ import advancedsql.query.* ;
272+ import java.sql.SQLException ;
273+
274+ try {
275+ MySQL mySQL = connect();
276+
277+ // Drop table
278+ Drop query = mySQL. table(" users" ). drop();
279+ Boolean execute = query. execute();
280+
281+ // Print query and result.
282+ System . out. println(query);
283+ System . out. println(execute);
284+ } catch (SQLException e) {
285+ e. printStackTrace();
286+ }
287+ ```
288+
226289## Licensing information
227290This project is licensed under LGPL-3.0. Please see the [ LICENSE] ( /LICENSE ) file for details.
228291
0 commit comments