public class FormTableSql extends Object
| 构造器和说明 |
|---|
FormTableSql() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
countTableSql(String type,
String tableName,
String schema)
统计表数量
|
static String |
lastInsert(String type)
获取最后插入ID
|
static String |
selectColumnsSql(String type,
String tableName,
String schema)
查询表字段信息
|
static String |
selectForgetKeySql(String type,
String tableName)
查询表外键
|
static String |
selectTableSql(String type,
String tableName,
String schema)
查询单个表结构
|
static String |
selectTablesSql(String type,
String schema,
String where)
查询全部表结构
|
public static String selectTablesSql(String type, String schema, String where)
type - 数据库类型schema - 数据库名schemawhere - where后面的条件语句字符串, 不包含where关键字public static String selectTableSql(String type, String tableName, String schema)
type - 数据库类型tableName - 表名schema - 数据库名schemapublic static String countTableSql(String type, String tableName, String schema)
type - 数据库类型tableName - 表名schema - 数据库名schemapublic static String selectColumnsSql(String type, String tableName, String schema)
type - 数据库类型tableName - 表名schema - 数据库名schemapublic static String selectForgetKeySql(String type, String tableName)
type - 数据库类型tableName - 表名Copyright © 2020. All rights reserved.