id INT AUTO_INCREMENT PRIMARY KEY, openid VARCHAR(255) NOT NULL, session_key VARCHAR(255) NOT NULL, nickname VARCHAR(255) NOT NULL, avatar VARCHAR(255) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP 插入10条数据的语句
时间: 2024-04-09 14:33:48 浏览: 67
以下是向 w_user 表插入 10 条数据的 SQL 语句示例:
```sql
INSERT INTO w_user (openid, session_key, nickname, avatar)
VALUES
('openid1', 'session_key1', 'nickname1', 'avatar1'),
('openid2', 'session_key2', 'nickname2', 'avatar2'),
('openid3', 'session_key3', 'nickname3', 'avatar3'),
('openid4', 'session_key4', 'nickname4', 'avatar4'),
('openid5', 'session_key5', 'nickname5', 'avatar5'),
('openid6', 'session_key6', 'nickname6', 'avatar6'),
('openid7', 'session_key7', 'nickname7', 'avatar7'),
('openid8', 'session_key8', 'nickname8', 'avatar8'),
('openid9', 'session_key9', 'nickname9', 'avatar9'),
('openid10', 'session_key10', 'nickname10', 'avatar10');
```
请注意,这只是一个示例,您可以根据实际情况调整插入的数据。每条数据对应一个用户的 openid、session_key、nickname 和 avatar。如有需要,请根据实际情况修改数据内容。
阅读全文