Here you can find the source of sqRightFunction(int databaseType, String expr, int length)
static public String sqRightFunction(int databaseType, String expr, int length)
//package com.java2s; //License from project: Apache License public class Main { static public String sqRightFunction(int databaseType, String expr, int length) { if (databaseType == 2 || databaseType == 5) // oracle return "substr(" + expr + ",-" + length + ")"; return "right(" + expr + "," + length + ")"; }// www .j a v a 2 s . c om static public String sqRightFunction(int databaseType, String expr, String length) { if (databaseType == 2 || databaseType == 5) // oracle return "substr(" + expr + ",-" + length + ")"; return "right(" + expr + "," + length + ")"; } }