I've created which used a column which were not being used initially but now we are setting and getting values
I found the column name is not correct and what i want to change column Name but want to retain the data of existing database in device
Is there any query to check and rename sqlite Column Something like this
Alter Table MyTable RENAME COLUMN IF EXISTS MyColumn TO MyColumn1;
Existing database is at user end used by user's throw out INDIA please help me
Note:
1. I don't want to Threw Exception
2. Also not want to recreate table
I know both way will accomplish the task but that's not the best practice
Rather than recreating i'll live with poor name
I think there could be solution like as we can check table like this hope we could check column
SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;
OR
SELECT name FROM sqlite_master WHERE type='table' AND name = 'MyTable';