Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to check if a column is existed? #1282

Open
zhenghongyi opened this issue Oct 25, 2024 · 0 comments
Open

How to check if a column is existed? #1282

zhenghongyi opened this issue Oct 25, 2024 · 0 comments

Comments

@zhenghongyi
Copy link

In FMDB, there is a api 'columnExists:inTableName:', to check if a column is existed in a table, before i add a new column to the table. Now, How to do this with the SQLite.swift? I let the db execute the 'PRAGMA table_info(MyTable)', but it return no elements. Wish to reply, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant