This one was inspired by good Oracle community friend Kim when I was doing my normal ranting about poor quality test cases. Often on AskTom or StackOverflow or other such forums where people seek SQL assistance, they provide their test data as a plain dump of their data, for example:
That might be fine from a visual perspective but its hopeless in terms of anyone wanting to help, because ideally we want to load that test data into a table in our own database, so that we can tinker and explore solutions. After all, we are trying to help people here.
But, rather than jump down the posters throat with a “Help us to help you!” diatribe, there is now an option at our disposal – we’ll let an AI do the heavy lifting for us.
I threw the above into ChatGPt with a simple prompt:
and voila! An set of insert statements ready to go.
Perhaps one day AI will be driving our cars, walking our dogs, making our meals, writing our applications, but until then, I welcome its ability to save me 10 minutes of text editing!
Got some thoughts? Leave a comment