FlexでAIRでアプリケーションを開発していますが、SQLiteでどこが間違っているのか分かりません(MySQLに慣れています)。パラメータは機能しますが、特定の場合にのみ有効です。これは、SQLインジェクションに対する組み込み衛生システムの一部ですか?助けてくれてありがとう!SQLiteパラメータ - tablenameをパラメータとして使用できません
作品:
sqliteの
"INSERT:カテゴリからフィールド"、パラメータは次のとおりです。フィールド= "*"
AS3
var statement:SQLStatement = new SQLStatement();
statement.connection = connection;
statement.text = "INSERT :Fields FROM Category";
statement.parameters[":Fields"] = "*";
statement.execute;
esn't仕事(でSQL構文エラー ":表"):
sqliteの
"INSERT:フィールドFROM:表":フィールド= "*" と:パラメータは、表= "カテゴリー"
AS3
var statement:SQLStatement = new SQLStatement();
statement.connection = connection;
statement.text = "INSERT :Fields FROM :Table";
statement.parameters[":Fields"] = "*";
statement.parameters[":Table"] = "Category";
statement.execute;
あなたの最初の段落はそれをすべて言います。 – Lucky