UPDATE TeacherInfo set PhoneNumber = '[1234,1254]'
1、必须保证被更新字段的类型是字符型;
2、被更新的值需要用''包裹起来。
$sql = "SELECT key1,key2 FROM keyst"$res = mysql_query($sql,$db_link)
$search = array()
$replace = array()
while($row = mysql_fetch_assoc($res)){
$search[] = $row['key1']
$replace[] = $row['key2']
}
$ftext = str_replace($search,$replace,$ftext)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)