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

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

WBOY
Release: 2016-06-13 09:59:24
Original
819 people have browsed it

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

$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);
?>
为什么我这样往表里新加以“年月”为名称的字段不成功呢,请指教!
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template