1
2
3
4
5
6
7
8
9
10
11
12
| package com.vci.client.bof;
|
| public class Test {
|
| public static void main(String[] args) {
| String str = "select abc from tt";
| str = str.substring("select".length() + 1);
| str = str.substring(0, str.indexOf(" from "));
| System.out.println(str.split(",").length);
| System.out.println(str);
| }
| }
|
|