mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-15 04:52:09 +08:00
Update SqlPrettyTest.java
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
package org.maxkey.util;
|
||||
|
||||
import org.maxkey.pretty.impl.SqlPretty;
|
||||
import org.maxkey.pretty.PrettyFactory;
|
||||
|
||||
public class SqlPrettyTest {
|
||||
|
||||
@@ -26,10 +26,8 @@ public class SqlPrettyTest {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
SqlPretty sf=new SqlPretty();
|
||||
String sqlString="select * from userinfo where t='111' order by t,s,t";
|
||||
System.out.println(sf.format(sqlString));
|
||||
System.out.println(PrettyFactory.getSqlPretty().format(sqlString));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user