Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
sq-lite テーブルに情報を格納するアプリケーションを 1 つ作成しようとしています。
しかし、テーブル名、列名、列数などのテーブル情報をユーザーから取得したいのですが、ユーザーはテーブル名でそれを編集したり、列を削除したり、新しい列を追加したりできます。どうすればいいですか。
テーブルフィールドのサンプル画面を追加します
Android では、任意の SQL 文字列を実行できます。UI から SQL 文字列を作成し、その文字列を のようなコマンドに入力しますdb.execute(string)。
db.execute(string)
参照