我想编写执行此类任务的代码:
check if a given database exists.
1a-->if no, then create a DB, make some tables in it and some columns too.
1.1-->Check if certain columns in a "list" exist.
Create those columns which don't exist yet.
1.2--> once 1.1 is done, populate these tables with some test data.
1b-->else check if certain tables exist and create them if they
don't exist. After that, do the stuff mentioned in 1.1 and 1.2
我是自己编写代码还是已经存在针对此类任务的“解决方案”?
最佳答案
我可以提出其他建议 flyway , 希望你会觉得它更容易掌握
关于java - "Solutions"用于创建数据库、表、列和填充表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11750037/