String [] selectionargs = new string [] {weiboflag };
Cursor cursor = dB. rawquery ("select * from"
+ Sqlitehelper. table_name [1] + "where" + weibouserinfo. Flag
+ "=? ", Selectionargs );
What is the difference between generating a string [] In a parameter and generating a string outside the parameter?
It is not wrong to write the data only after it is generated and written outside. If it is written into the parameter, it will get = NULL.
I replace selectionargs with new string [] {weiboflag}
The obtained SQL statement is select * From Weibo where flag =? = NULL
Chongqing-IWT (81142686) 21:22:45
Is an array generated after SQL statements are generated?
I wrote another method and tested it myself. The result won't be like this. A C ++ user said it may be caused by no space allocation, maybe this encapsulation is a C ++ library, but as Java, it must be a bug.
The parameter is allocated only after the application is applied, but not when it is used.
When you apply for the parameter, the system has actually obtained your application name XXXX, but this is actually empty.