Whenever you pass the CREATE TABLE command to FMDB, it internally converts it to the corresponding SQLite query (for which you need not worry).
According to the official documentation provided on the SQLite website, it states:
"It is usually an error to attempt to create a new table in a database that already contains a table, index or view of the same name."
So, if you try to create another table with the same name, SQLite throws an error:
create table test_table (test_no NUMBER, test_name TEXT); //Table created create table test_table (test_no NUMBER, test_name TEXT);
You will get the following error.
Error: test_table already exists
So, SQLite checks for a table, it will not allow another table with the same name.
Again, you can refer to the documentation for more details.
Source http://www.sqlite.org/lang_createtable.html
source share