Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why dulpicate error is shown in less-5 and 6, without any duplicate data's #27

Open
rahul-sani opened this issue Apr 5, 2020 · 0 comments

Comments

@rahul-sani
Copy link

rahul-sani commented Apr 5, 2020

I just have completed the video 6 , I'm getting all the outputsl as expected. But I'm not understanding why it is throwing that error.

ie : ERROR 1062 (23000): Duplicate entry 'security::1' for key '<group_key>'

mysql> select count(*), concat((select database()),0x3a,0x3a,floor(rand()2))dump from information_schema.columns group by dump;
+----------+-------------+
| count(
) | dump |
+----------+-------------+
| 1501 | security::0 |
| 1603 | security::1 |
+----------+-------------+
2 rows in set (0.04 sec)

mysql> select count(*), concat((select database()),0x3a,0x3a,floor(rand()*2))dump from information_schema.columns group by dump;
ERROR 1062 (23000): Duplicate entry 'security::1' for key '<group_key>'

My doubt is there is no duplication of data right? security:: 0 's count is 1501 while the count of security::1 is 1603

So why is this error coming.

@rahul-sani rahul-sani changed the title why duplicate message is shown, when there is no duplicated datas Why dulpicate error is shown in less-5 and 6, without any duplicate data's Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant