Scenario:
Here, I have to generate an INSERT INTO Statement From Excel Using Formula.
Example:
From the above sheet, I’m going to create insert into statement.
Formula:
="INSERT INTO tablename VALUES ("&a2&",'"&b2&"');"
We can drag it to wherever it depends on the available data.
Note:
For a string, we should use single quotes.
i.e., ‘ “ &b2&” ‘
Thank you for visiting my Blog...
Share Your Comments…
No comments:
Post a Comment