且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用CSV文件-PHP将创建表的反引号添加到mysql

更新时间:2023-01-31 08:52:31

如果包含字段名称在反引号中,这是w阻止它尝试将某些列名称解释为保留字...

If you enclose the field name in backticks, this will stop it trying to interpret some column names as reserved words...

$fields[] = '`'.$f.'` VARCHAR(500)';