mysql 正则问题(高手进)
mysql 问题,
20选7, 开奖结果为:05|07|10|11|14|15|17
表结构为一个字段存着各人的猜得结果, 格式同上.
如何一次性比对出, 各人赢了几个数字?
求:mysql语句意向:
$sql = "update table set win=4 where (字段 REGEXP $result)=4";
$sql = "update table set win=5 where (字段 REGEXP $result)=5";
$sql = "update table set win=6 where (字段 REGEXP $result)=6";
$sql = "update table set win=7 where (字段 REGEXP $result)=7";
这一语句如何写?
谢谢赐教.