Coder Social home page Coder Social logo

Comments (5)

xialeistudio avatar xialeistudio commented on September 13, 2024

你的数据表结构贴出来
执行SQL
show create table user

from thinkphp-inaction.

xynetstudio avatar xynetstudio commented on September 13, 2024

CREATE TABLE mb_user (
user_id int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID',
username varchar(40) NOT NULL,
password char(32) NOT NULL,
created_at int(10) NOT NULL,
PRIMARY KEY (user_id),
KEY createdAt (created_at) USING BTREE,
KEY username (username) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8
CREATE TABLE mb_message (
message_id int(10) unsigned NOT NULL AUTO_INCREMENT,
content varchar(100) NOT NULL,
created_at int(10) NOT NULL,
user_id int(10) unsigned NOT NULL,
PRIMARY KEY (message_id),
KEY createdAt (created_at) USING BTREE,
KEY userId (user_id) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8
报错:1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1 [ SQL语句 ] : SELECT COUNT(*) AS tp_count FROM LIMIT 1

from thinkphp-inaction.

xialeistudio avatar xialeistudio commented on September 13, 2024
SELECT COUNT(*) AS tp_count FROM LIMIT 1

SELECT语句的表名呢

from thinkphp-inaction.

xynetstudio avatar xynetstudio commented on September 13, 2024

我完全是按照书本里的语句编写的,测试失败后,下载github里的源码,导入数据库后依然有问题,您可以自己测试一下试试

from thinkphp-inaction.

xialeistudio avatar xialeistudio commented on September 13, 2024

麻烦把你照着书本里写的页码发出来

from thinkphp-inaction.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.