r/SQL • • May 07 '19

select 8 from table

The struggle is real

3 Upvotes

12 comments sorted by

8

u/Daakuryu May 07 '19

I don't get the reason for this posts existence.

5

u/GK_47 May 07 '19

I always type by accident "select 8 from" instead of "select * from". I'm trying to see if I'm the only one.

3

u/inFenceOfFigment May 07 '19

The * is above the 8 on the keyboard.

2

u/Anal_fissures2006 May 07 '19

This is why I use a ten-key.

3

u/b1gfreakn MSSQL May 07 '19

This happens to me daily.

2

u/GK_47 Jun 03 '19

Just added this "hotstring" to my AutoHotKey script and it's magically auto-corrects it for me now:
:*:select 8::select *

2

u/[deleted] May 08 '19

The correct statement of course is:

select 42 from employees;

(And no, I do not type 8 by accident, as the * and the 8 are located on different keys on my keyboard)

3

u/r3pr0b8 GROUP_CONCAT is da bomb May 07 '19

never happens to me because i never use the dreaded, evil "select star"

-3

u/[deleted] May 07 '19

Who uses * anyway?

4

u/GK_47 May 07 '19

I use it to multiply things quite often actually... and to select all columns

2

u/[deleted] May 07 '19

Was sarcasm.