【问题标题】:CodeIgniter SQL Server database errorCodeIgniter SQL Server 数据库错误
【发布时间】:2011-03-08 08:59:58
【问题描述】:

我正在做一个关于 CodeIgniter + SQL Server 的项目。

我在尝试向表中插入数据时遇到数据库错误。但是当我直接在 SQL Server 上执行相同的查询时,它可以工作。以下是错误和查询:

发生数据库错误

错误编号:
声明已终止。
INSERT INTO TBL_POS_Customer (customer_name, customer_address, customer_zip, customer_city, customer_state, customer_dist_country, country_iso, country_subdivision_code, zone_code, customer_zip_code_status, customer_country_status, mainname, country_division_code) VALUES ('A.C.E.I. SPRL', '', '6001', '', '', 'BE', '', 'HT', '', '0', '1', 0, 'HT')
文件名:D:\Apache2.2\htdocs\POS\system\database\DB_driver.php
行号:330

【问题讨论】:

    标签: php sql sql-server codeigniter


    【解决方案1】:
    CREATE/ALTER TABLE ... ( ... ) TYPE=MyISAM
    

    不再有效。在此上下文中不再接受 TYPE 关键字。

    我知道 TYPE= 自 4.1 起已弃用并生成警告。

    For a quick fix, can you try to replace
    
    TYPE=MyISAM 
    
    with
    ENGINE=MyISAM 
    

    【讨论】:

    • 话题发起者使用的是MsSQL,不是吗?
    猜你喜欢
    • 2019-12-27
    • 1970-01-01
    • 1970-01-01
    • 2021-11-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多