public enum MsSqlMethod extends Enum<MsSqlMethod>
| Enum Constant and Description |
|---|
INSERT_IGNORE_ONE
插入如果中已经存在相同的记录,则忽略当前新数据
|
REPLACE_ONE
表示插入替换数据,需求表中有PrimaryKey,或者unique索引,如果数据库已经存在数据,则用新数据替换,如果没有数据效果则和insert into一样;
|
| Modifier and Type | Method and Description |
|---|---|
static MsSqlMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MsSqlMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MsSqlMethod INSERT_IGNORE_ONE
public static final MsSqlMethod REPLACE_ONE
public static MsSqlMethod[] values()
for (MsSqlMethod c : MsSqlMethod.values()) System.out.println(c);
public static MsSqlMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2023. All rights reserved.