0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【C++Builder】user_versionを変更する方法

0
Posted at

今回困ったこと

DBのuser_versionを変更しようと、SQLQueryに

	SQLQuery1->SQL->Text = ""PRAGMA user_version=1;";
	SQLQuery1->Active = true;

ってしたら
image.png
って怒られてしまってできなかったので、調べたところ、どうもSQLQueryは結果を返すSQL文でないと使用できないっぽい。

解決策

SQLConnectionを使えばいけました。

SQLConnection1->Execute("PRAGMA user_version=1;",NULL);
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?