开发者

Find rows starting with non-alpha sign

Having this code:

开发者_JS百科$val_sql = "";
$stm = $dbh->prepare("SELECT * FROM table WHERE column REGEXP ?");
$stm->bindValue(1, $val_sql, PDO::PARAM_STR);
$stm->execute();

How do I find rows NOT starting with alpha signs?


you can try to:

$val_sql = "^[^a-z]";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜