MySQL 执行查询报错:Fatal error encountered during command execution
MySQL执行查询时,语句中含有@rowNum查询行号的变量时报错,提示Fatal error encountered during command execution .
在数据库连接串中添加“Allow User Variables=true;”即可执行查询成功!
例如:“Server=192.168.1.XXX;Database=huac_pacs_cs;Uid=root;Pwd=huac123;Charset=utf8;Allow User Variables=true;”