Comments (5)
你的数据表结构贴出来
执行SQL
show create table user
from thinkphp-inaction.
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.
SELECT COUNT(*) AS tp_count FROM LIMIT 1
SELECT语句的表名呢
from thinkphp-inaction.
我完全是按照书本里的语句编写的,测试失败后,下载github里的源码,导入数据库后依然有问题,您可以自己测试一下试试
from thinkphp-inaction.
麻烦把你照着书本里写的页码发出来
from thinkphp-inaction.
Related Issues (14)
- test
- page 28疑问
- 你好 夏老师 请教thinkphp实战的博客问题 HOT 15
- 留言板项目出现这个: HOT 1
- 示例代码浏览时出现乱码,怎么解决?chapter-2 HOT 1
- 为什么您的项目文档在我本地运行返回的是数组?而书本上是参数、值对形式?chapter-3 (P32页) HOT 1
- 问题 HOT 2
- blog问题 HOT 6
- 关于blog admin用户默认密码问题 HOT 1
- 关于微信公众号的问题 HOT 3
- 关于博客的total HOT 3
- 数据写入数据库全部正常,但是留言的内容没有在留言列表显示出来,翻页正常 HOT 13
- page 53 疑问
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thinkphp-inaction.