2017-04-06 18:27:47 +02:00
|
|
|
#ifndef __SQLPARSER__DELETE_STATEMENT_H__
|
|
|
|
#define __SQLPARSER__DELETE_STATEMENT_H__
|
2014-11-26 14:43:22 +01:00
|
|
|
|
2014-12-03 17:43:02 +01:00
|
|
|
#include "SQLStatement.h"
|
2014-11-26 14:43:22 +01:00
|
|
|
|
2017-02-03 16:50:18 +01:00
|
|
|
// Note: Implementations of constructors and destructors can be found in statements.cpp.
|
2014-11-26 14:43:22 +01:00
|
|
|
namespace hsql {
|
2017-04-21 16:15:07 +02:00
|
|
|
|
2017-02-08 02:06:15 +01:00
|
|
|
// Represents SQL Delete statements.
|
|
|
|
// Example: "DELETE FROM students WHERE grade > 3.0"
|
|
|
|
// Note: if (expr == NULL) => delete all rows (truncate)
|
|
|
|
struct DeleteStatement : SQLStatement {
|
|
|
|
DeleteStatement();
|
|
|
|
virtual ~DeleteStatement();
|
2016-02-27 15:01:06 +01:00
|
|
|
|
2017-02-08 02:06:15 +01:00
|
|
|
char* tableName;
|
|
|
|
Expr* expr;
|
|
|
|
};
|
2014-11-26 14:43:22 +01:00
|
|
|
|
|
|
|
} // namespace hsql
|
2017-04-21 16:15:07 +02:00
|
|
|
|
2017-02-03 16:50:18 +01:00
|
|
|
#endif
|