完善小细节
This commit is contained in:
31
tradeCattle/test_single_record_insert.sql
Normal file
31
tradeCattle/test_single_record_insert.sql
Normal file
@@ -0,0 +1,31 @@
|
||||
-- 测试单条记录插入,避免批量插入问题
|
||||
|
||||
-- 1. 清空xq_client_log表
|
||||
TRUNCATE TABLE xq_client_log;
|
||||
|
||||
-- 2. 手动插入一条测试记录
|
||||
INSERT INTO xq_client_log (
|
||||
device_id,
|
||||
battery,
|
||||
temperature,
|
||||
deviceld,
|
||||
latitude,
|
||||
longitude,
|
||||
steps,
|
||||
time
|
||||
) VALUES (
|
||||
'24075000139',
|
||||
'3.300',
|
||||
'25.80',
|
||||
'test_device_id',
|
||||
'30.481277875444164',
|
||||
'114.401791',
|
||||
21,
|
||||
NOW()
|
||||
);
|
||||
|
||||
-- 3. 检查插入结果
|
||||
SELECT * FROM xq_client_log WHERE device_id = '24075000139';
|
||||
|
||||
-- 4. 检查表结构
|
||||
DESCRIBE xq_client_log;
|
||||
Reference in New Issue
Block a user