在Android studio中写数据库相关的代码进行测试时,发现报错,提示内容为:
E/TestRunner: java.lang.IllegalArgumentException: Too many bind arguments. 1 arguments were provided but the statement needs 0 arguments.
最后找到原因是因为在delete方法中的参数传递错误而导致的
添加" =?"即可
在Android studio中写数据库相关的代码进行测试时,发现报错,提示内容为:
E/TestRunner: java.lang.IllegalArgumentException: Too many bind arguments. 1 arguments were provided but the statement needs 0 arguments.
最后找到原因是因为在delete方法中的参数传递错误而导致的
添加" =?"即可