当前位置: 软件>C/C++软件
MySQL的SQL语法解析器 DBIx-MyParse
本文导语: linux下,提供了对于mysql的sql语法的解析器,示例代码: use DBIx::MyParse;my $parser = DBIx::MyParse->new( database => 'database', groups => ['my_cnf_group'], options => ['--skip-networking'], datadir => '/tmp');my $query = $parser->parse("SELECT field FROM ...
linux下,提供了对于mysql的sql语法的解析器,示例代码:
use DBIx::MyParse;
my $parser = DBIx::MyParse->new(
database => 'database',
groups => ['my_cnf_group'],
options => ['--skip-networking'],
datadir => '/tmp'
);
my $query = $parser->parse("SELECT field FROM table");
print $query->getCommand();