?? switchsql.java
字號:
package com.huiton.mainframe.control.web.handlers;public class SwitchSql { public static final String SQLSERVER = "SQLServer"; public static final String ORACLE = "Oracle"; public static final String NULL_STRING = ""; public SwitchSql() { } public static String getHintSql(String db,String strToday) { if (db.equalsIgnoreCase(SQLSERVER)) { return "DATEDIFF(day,'" + strToday + "',cur_date)<=alert_days" ; } else if (db.equalsIgnoreCase(ORACLE)) { return NULL_STRING ; }else { return NULL_STRING ; } } public static String getPlus(String db) { if (db.equalsIgnoreCase(SQLSERVER)) { return "+" ; } else if (db.equalsIgnoreCase(ORACLE)) { return "||" ; }else { return NULL_STRING ; } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -