Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sqlite错误“;没有这样的表格”;临摹_Sqlite - Fatal编程技术网

Sqlite错误“;没有这样的表格”;临摹

Sqlite错误“;没有这样的表格”;临摹,sqlite,Sqlite,通过复制表创建新表时出错 String countQuery ="CREATE TABLE "+ TABLE_CONTACTSDUMMY +" AS SELECT * FROM "+DATABASE_NAME +"."+ TABLE_CONTACTS +""; 错误:没有这样的表数据库\u名称。表\u联系人 您使用什么语言,数据库和表是否存在?它是正确的数据库和表名吗?你能给我们看剩下的代码吗(最少的例子)?请使用正确的格式;代码格式为代码,错误消息格式为块引号;阅读(帮助->)是,数据库和

通过复制表创建新表时出错

String countQuery ="CREATE TABLE "+  TABLE_CONTACTSDUMMY +" AS SELECT * FROM "+DATABASE_NAME +"."+ TABLE_CONTACTS +"";
错误:没有这样的表数据库\u名称。表\u联系人


您使用什么语言,数据库和表是否存在?它是正确的数据库和表名吗?你能给我们看剩下的代码吗(最少的例子)?请使用正确的格式;代码格式为代码,错误消息格式为块引号;阅读(帮助->)是,数据库和表存在。如果我从查询中删除数据库名称,它将运行string countQuery=“CREATE table”+table\u CONTACTS dummy+”作为SELECT*from“+table\u CONTACTS+”;SQLiteDatabase db=this.getReadableDatabase();Cursor Cursor=db.rawQuery(countQuery,null);cursor.close();不要在注释中添加代码,而是编辑您的问题,并将其格式化为代码(阅读帮助)。我认为您需要使用
DatabaseName.SchemaName.TableName
;)。