查看“︁MySQL/INSERT INTO”︁的源代码
来自康健生活
←
MySQL/INSERT INTO
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== 引言 == 插入空值。 {{Shc_out|<syntaxhighlight lang="bash"> INSERT INTO user (name, email) VALUES ('lan', '');</syntaxhighlight>|<syntaxhighlight lang="bash"> Query OK, 1 row affected (0.01 sec) </syntaxhighlight>|mysql>}} 插入 null。 {{Shc_out|<syntaxhighlight lang="bash"> INSERT INTO user (name, email) VALUES ('lan', NULL);</syntaxhighlight>|<syntaxhighlight lang="bash"> Query OK, 1 row affected (0.00 sec) </syntaxhighlight>|mysql>}} 插入单个值。 <syntaxhighlight lang="mysql"> INSERT INTO `md_user`(`name`, `datetime`) VALUES ('kangjian', '2021-12-29'); </syntaxhighlight> 插入多个值。 <syntaxhighlight lang="mysql"> INSERT INTO `md_user`(`name`, `datetime`) VALUES ('kangjian', '2021-12-29'), ('lilei', '2021-12-29'); </syntaxhighlight> 将搜索结果插入表中。 <syntaxhighlight lang="mysql"> INSERT INTO md_folder_user(role_id, folder_id, inviter_id, user_id) select tu.role_id as `role_id`, f.id as folder_id, NULL as inviter_id, tu.user_id as user_id from md_folder as f left join md_team_user as tu on tu.team_id = f.team_id; </syntaxhighlight>
此页面嵌入的页面:
模板:Shc out
(
查看源代码
)
模板:Shc out/style.css
(
查看源代码
)
返回
MySQL/INSERT INTO
。
导航菜单
康健生活
搜索
user-page
通知
user-interface-preferences
个人工具
登录
五一
多读书,多运动,多到远处走走,再看看不一样的世界。