\UtilSql

Sql语句处理执行类

Summary

Methods
Properties
Constants
sql_split()
execute_sql_from_file()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

sql_split()

sql_split(string  $sql, string  $tablepre) : \Util\multitype:string

解析数据库语句函数

Parameters

string $sql

带默认前缀的sql语句

string $tablepre

当前系统前缀

Returns

\Util\multitype:string —

返回最终需要的sql语句

execute_sql_from_file()

execute_sql_from_file(string  $file) : \Util\multitype:string

执行文件中SQL语句函数

Parameters

string $file

sql语句文件路径

Returns

\Util\multitype:string —

返回最终需要的sql语句