Skip to content

Insert records ,but lose some records #10286

Closed Answered by 16601746291
16601746291 asked this question in Q&A
Discussion options

You must be logged in to vote

like this create table sql:

create table yayatest.advertiser_view_record( time date, advertiser varchar(10), channel varchar(10), user_id int) distributed by hash(time) properties("replication_num" = "1");

desc yayatest.advertiser_view_record all , like below screenshot :

then, I insert some records ,use below sql: insert into yayatest.advertiser_view_record (time,advertiser,channel,user_id) values (current_date(),'LV','微信朋友圈',12344), (current_date(),'LV','微信朋友圈',12312), (current_date(),'COCO','微信朋友圈',8908), (current_date(),'LV','小程序',3421), (current_date(),'POLO','微信朋友圈',12344), (current_date(),'POLO','天猫商城',3211), (current_date(),'POLO','微信',33442);

execute log : 2 rows affected in 20…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by 16601746291
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant