Flex를 통해 AIR에서 응용 프로그램을 개발 중이지만 SQLite에서 어디서 잘못 될지 알 수 없습니다 (MySQL에 익숙합니다). 매개 변수는 작동하지만 특정 경우에만 가능합니다. 이 부분이 SQL 인젝션에 대비되는 위생 시스템의 일부입니까? 어떤 도움을 주셔서 감사합니다!SQLite 매개 변수 - tablename을 매개 변수로 허용하지 않습니다.
작품 :
SQLite는
"INSERT : 장르 FROM 필드", 매개 변수는 다음과 같습니다 필드 = "*"
AS3
var statement:SQLStatement = new SQLStatement();
statement.connection = connection;
statement.text = "INSERT :Fields FROM Category";
statement.parameters[":Fields"] = "*";
statement.execute;
마 esn't 작업 (AT SQL 구문 오류 "표")
SQLite는
"INSERT : 분야 표"필드 = "*"및 다음 매개 변수는 표 = "분류"
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