Home  >  Article  >  Backend Development  >  加入新字段有关问题,请大侠指教

加入新字段有关问题,请大侠指教

WBOY
WBOYOriginal
2016-06-13 13:47:44855browse

加入新字段问题,请大侠指教
 

$c=date("Ym");
$sql="ALTER TABLE dkmx ADD '$c' INT NOT NULL";
$resultage=mysql_query($sql,$db);
?>
为什么我这样往表里新加以“年月”为名称的字段不成功呢,请指教!

------解决方案--------------------

探讨


$c=date("Ym");
$sql="ALTER TABLE dkmx ADD '$c' INT NOT NULL";
$resultage=mysql_query($sql,$db);
?>
为什么我这样往表里新加以“年月”为名称的字段不成功呢,请指教!
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn