未创建表

时间:2019-12-26 15:39:53

标签: android sqlite

我正在创建一个表,但是不幸的是,它没有被创建 我猜我的查询有一个问题我正在使用它正在创建,直到我添加许多列 任何帮助人员<3,如果看起来不清楚,抱歉,但是我已经非常努力地知道出了什么问题了,现在已经花了2个小时了

private static final String CREATE_TABLE = 
                "CREATE TABLE "+TABLE_NAME+
                " ("+request_id+" INTEGER PRIMARY KEY " + ","+is_completed+" INT(10) " + ","+status+" INT(10) " +
                ","+is_paid+" INT(10) " + ","+is_cancelled+" INT(10) " + ","+is_client_rated+" INT(10) " +
                ","+is_walker_rated+" INT(10) " + ","+payment_mode+" INT(10) " +
                ","+distance+" FLOAT(8,2) " + ","+waiting_time+" FLOAT(8,2) " + ","+refund+" FLOAT(8,2) " +
                ","+pay_time+" FLOAT(8,2) " + ","+device_distance+" FLOAT(8,2) " + ","+time+" FLOAT(8,2) " + ","+total+" FLOAT(8,2) " +
                ","+promo_payment+" FLOAT(8,2) " + ","+D_latitude+" DOUBLE(89,2) " + ","+D_longitude+" DOUBLE(89,2) " +
                ","+latitude+" DOUBLE(89,2) " + ","+longitude+" DOUBLE(89,2) " + ","+date+" VARCHAR(255) " +
                ","+name+" VARCHAR(255) " + ","+request_start_time+" VARCHAR(255) " + ","+start_count_time+" VARCHAR(255) " +
                ","+end_trip_time+" VARCHAR(255) " + ","+start_late_time+" VARCHAR(255) " + ","+end_late_time+" VARCHAR(255) " +
                ","+late_client_min+" VARCHAR(255) " + ","+created_at+" VARCHAR(255) " + ","+security_key+" VARCHAR(255) " +
                ","+dest_address+" VARCHAR(255) " + ","+req_create_user_time+" VARCHAR(255) " + ","+src_address+" VARCHAR(255)) " + ";";

0 个答案:

没有答案