Skip to content

Insert into Table Select * from Table #399

Answered by jeffreyaven
vwake7 asked this question in Q&A
Discussion options

You must be logged in to vote

hey @vwake7 this issue is you aren't supplying the required parameters to the SELECT query, try something like:

Insert into azure.resources.resource_groups( resourceGroupName,  subscriptionId,  data__location) 
select  'vmss-flex', '631d1c6d-2a65-43e7-93c2-688bfe4e1468', location from azure.resources.resource_groups
where subscriptionId = '631d1c6d-2a65-43e7-93c2-688bfe4e1468'

azure.resources.resource_groups requires subscriptionId as a required param, you can see this in SHOW METHODS IN azure.resources.resource_groups (check the select SQLVerb values for requiredParams)

This should work

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vwake7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants