当前位置:网站首页>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 .
边栏推荐
- 解析90后创客教育的主观积极性
- Library management backstage
- Database answers build standard, answer as required
- Web penetration test - 5. Brute force cracking vulnerability - (8) PostgreSQL password cracking
- event
- Real time monitoring: system and application level real-time monitoring based on flow computing Oceanus (Flink)
- How do ECS create FTP accounts? What should I pay attention to during creation?
- Huawei cloud gaussdb (for redis) unveiling issue 19: gaussdb (for redis) comprehensive comparison with CODIS
- 问题:sql创建存储过程
- TCPIP协议详解
猜你喜欢

SAP MTS/ATO/MTO/ETO专题之十:ETO模式 Q+空模式 未估价库存 策略自定义

Abnova membrane protein lipoprotein solution

Facebook内部通告:将重新整合即时通讯功能

Final summary of freshman semester (supplement knowledge loopholes)

Doctor application | Hong Kong University of science and Technology (Guangzhou) Mr. Liu Hao recruits the full award doctor / Master in data mining

2022年二级造价工程师备考攻略,你准备好了吗?

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

Abnova膜蛋白脂蛋白体解决方案

Training course of mixed accuracy from simple to deep

线性回归的损失和优化,机器学习预测房价
随机推荐
Worthington木瓜蛋白酶化学性质和特异性
Deep learning common optimizer summary
SAP MTS/ATO/MTO/ETO专题之七:ATO模式1 M+M模式策略用82(6892)
Introduction to vulnerability priority technology (VPT)
Summary of Android interview questions in 2020 (elementary)
Integration of Alibaba cloud SMS services and reasons for illegal message signing
How to create an FTP server on the ECS? Is it safe to create an FTP server on the ECS?
Training course of mixed accuracy from simple to deep
Data acquisition gateway intelligent industrial Internet of things
Real time monitoring: system and application level real-time monitoring based on flow computing Oceanus (Flink)
5g and industrial Internet
How do ECS create FTP accounts? What should I pay attention to during creation?
uni-app进阶之认证【day12】
大一下学期期末总结(补充知识漏洞)
Ribbon
Introduction to C language custom types (structure, enumeration, union, bit segment)
How to open the port of ECS what are the precautions for using ECS
ribbon
DP summary of ACM in recent two weeks
How to use and apply for ECS? What parameters can be configured