public interface Delete extends StatementParameters
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Table> |
from(Class<T> table)
删除表中的记录
|
<T extends Table> |
from(Class<T> table,
Object splitColumnValue)
删除表中的记录(适用于存在数据切割split的表,原则上每次只对一个子表做删除操作)
|
int |
go()
执行删除操作
|
Delete |
where(Cnd cnd)
删除语句时的条件语句
|
getParams<T extends Table> Delete from(Class<T> table) throws SQLException
T - -table - 表对应的classSQLException - -<T extends Table> Delete from(Class<T> table, Object splitColumnValue) throws SQLException
T - -table - 表对应的classsplitColumnValue - 切割字段的字段值,用于确定子表。所以如果需要删除一张子表中的多条数据,只传其中一个此字段的值即可SQLException - -int go() throws SQLException
SQLException - -Copyright © 2020 Pivotal Software, Inc.. All rights reserved.