package com.product.data.center.utils;
|
|
import com.product.datasource.config.DataBaseType;
|
|
/**
|
* @Author cheng
|
* @Date 2022/7/14 10:48
|
* @PackageName:com.product.data.center.utils
|
* @ClassName: BatchUtils
|
* @Description:
|
* @Version 1.0
|
*/
|
public class BatchUtils {
|
|
public static String getFieldName(String fieldName, DataBaseType dbe) {
|
switch (dbe) {
|
case MYSQL:
|
return "`" + fieldName + "`";
|
case SQLSERVER:
|
return "[" + fieldName + "]";
|
case ORACLE:
|
return "\"" + fieldName.toUpperCase() + '\"';
|
case PSQL:
|
return "\"" + fieldName + '\"';
|
case INFORMIX:
|
//todo
|
}
|
return fieldName;
|
}
|
}
|