当前位置:网站首页>Bi-sql insert into
Bi-sql insert into
2022-06-24 04:47:00 【Powerbi white tea】
INSERT INTO sentence
INSERT INTO Statements can usually be used in SQL Insert some row data for the table in the query of .
See here , Maybe the little friend will ask white tea , You didn't mean we were PowerBI You can use the query function in , What about this increasing function ? Don't worry. , Listen to white tea and tell you .
Basic grammar
grammar 1:
INSERT INTO The name of the table VALUES ( value 1, value 2,....)
grammar 2:
INSERT INTO The name of the table ( Column 1, Column 2,...) VALUES ( value 1, value 2,....)
reason
White tea explain , Why is this issue about a function that does not belong to a query statement .
Because once we use SQL Connect account , It has the function of reading and writing , So we're in PowerBI The add statement built in will be written back to SQL In the database of , This will affect our database , Therefore, this issue will specifically address this issue .
Using examples
Case data :
In the database of white tea machine , There is a name “TEST” The database of , There is a name “ Sales details ” Case data for .
Let's have a look at it first “ Sales details ” The data of the branch column in .
SELECT DISTINCT The branch where you are FROM Sales details
There is a name “TEST” and “??” Two lines of special data .
And then we have PowerBI Import window for , Build new statements .
At this time, white tea uses the database administrator account , Have read and write permission .
INSERT INTO
Sales details
( The branch where you are )
VALUES
('THETEA')give the result as follows :
You can see that the message returned from the window is “ Affected lines ” by 1 That's ok .
We go back to SQL Enter the following query in to see how the data changes .
SELECT DISTINCT The branch where you are FROM Sales details
You can see at this point in PowerBI The data entered in has been returned to SQL In the database of .
Let's continue to copy the above query statements to PowerBI View in .
give the result as follows :
friends , You see , This data will also appear in PowerBI The query window of .
therefore , stay PowerBI Use in SQL At the time of statement , Be sure to remember :
- Pay attention to the permission of the connection account , Whether it has read-write function
- Not in PowerBI Build statements other than query functions in
- Pay attention to the impact on the overall structure of the database
This is white tea , One PowerBI Beginners .
边栏推荐
- ribbon
- 提pr,push 的时候网络超时配置方法
- How does ECS build websites? Is it troublesome for ECs to build websites?
- Worthington胰蛋白酶的物化性质及特异性
- How to control CDN traffic gracefully in cloud development?
- Web penetration test - 5. Brute force cracking vulnerability - (5) SMB password cracking
- What does VPS server mean? What is the difference between a VPS server and an ECS?
- Deep learning common optimizer summary
- Web penetration test - 5. Brute force cracking vulnerability - (9) MS-SQL password cracking
- What does IIS mean and what is its function? How does IIS set the size of the web site space on the server?
猜你喜欢

An interface testing software that supports offline document sharing in the Intranet

The official overclocking tool of Intel XTU supports win11 22h2 and 13th generation core Raptor Lake processors

External network access SVN server (external network access SVN server deployed on the cloud)

重新认识WorkPlus,不止IM即时通讯,是企业移动应用管理专家

Zhang Xiaodan, chief architect of Alibaba cloud hybrid cloud: evolution and development of government enterprise hybrid cloud technology architecture

MySQL - SQL execution process

解析90后创客教育的主观积极性
Advanced authentication of uni app [Day12]

Recognize workplus again, not only im but also enterprise mobile application management expert

apipost接口断言详解
随机推荐
How do ECS create FTP accounts? What should I pay attention to during creation?
Web penetration test - 5. Brute force cracking vulnerability - (5) SMB password cracking
Are you ready for the exam preparation strategy of level II cost engineer in 2022?
External network access SVN server (external network access SVN server deployed on the cloud)
Introduction à la méthode de descente par Gradient - document d'apprentissage automatique pour les programmeurs de chevaux noirs
Introduction to C language custom types (structure, enumeration, union, bit segment)
How to restart the ECS? What are the differences between ECS restart and normal computers?
What is the role of ECS? How does FTP connect to ECS configuration?
web渗透测试----5、暴力破解漏洞--(6)VNC密码破解
Data acquisition gateway intelligent industrial Internet of things
Next. JS + cloud development webify creates an excellent website
Jimureport building block report - expression introduction
什么是数据中台
mini-Web框架:装饰器方式的添加路由 | 黑马程序员
Clickhouse thread occupation troubleshooting and killing
oracle数据库提示无操作权限的问题
Worthington木瓜蛋白酶化学性质和特异性
Huawei cloud gaussdb (for redis) unveiling issue 19: gaussdb (for redis) comprehensive comparison with CODIS
2020年Android面试题汇总(初级)
Network timeout configuration method when PR and push are proposed