sql查询插入值到表 [英] sql query for insert values into table

查看:102
本文介绍了sql查询插入值到表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,我需要查询向表中插入值
例如
表"book":我需要插入4个列值
值由用户页面键入,如果条件为true,则值将检查两个表(详细信息,根目录),然后将4个值插入到书表中.

hi friends i need query for insert values into tables
eg
table ''book'' :i need to insert 4 column values
values are typed by user page that values check two table(detail,root) if condition true then the 4 values should insert into book table

推荐答案

记录,您需要插入所有列中(除非您对某些列具有默认设置).
您不能插入表列的子集.
If you are inserting a record, you need to insert into all the columns (unless you have defaults on some of them).
You cannot insert into a subset of table columns.


这篇关于sql查询插入值到表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆