标签: php mysql regex prepared-statement
拥有此代码:
$val_sql = ""; $stm = $dbh->prepare("SELECT * FROM table WHERE column REGEXP ?"); $stm->bindValue(1, $val_sql, PDO::PARAM_STR); $stm->execute();
如何找到不以alpha符号开头的行?
答案 0 :(得分:1)
你可以尝试:
$val_sql = "^[^a-z]";