Question

What SQL syntax would you use to change data in a table if you only had...

What SQL syntax would you use to change data in a table if you only had READ access to the table? Having read access means the data manipulation would occur in the dataset rather than in the table being pulled from.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

In case you have only READ access, then to change data, you would need to first create a view of the table and then change the data by editing the VIEW created.

The syntax to create a view is given as:

CREATE VIEW view_name AS
SELECT column1, column2, ...
FROM table_name
WHERE condition;

The syntax to update a view is given as:

UPDATE < view_name > SET<column1>=<value1>,<column2>=<value2>,.....
WHERE <condition>;
Add a comment
Know the answer?
Add Answer to:
What SQL syntax would you use to change data in a table if you only had...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT