Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我想通过 mysql 在 php 中进行等效的字符串替换。我的专栏有字符串格式“发布日期:2012 年 5 月 20 日星期四”我想发布文本发布日期:。我试过这个但没有用
$query = ("UPDATE Films SET Film_Release = REPLACE(Film_Release, 'Release Date: ','"); $runquery = mysql_query($query);
多谢你们
尝试额外'和关闭)
'
)
$query = "UPDATE Films SET Film_Release = REPLACE(Film_Release, 'Release Date: ','')";