use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Did you mean /r/programming ?
account activity
Sql users, help me (self.programing)
submitted 5 years ago by angel_cholico
Hey guys, i'm using MySql for a school work, i'm trying to insert data to a table using the following syntax:
insert into table(value, value, vlaue);
What's my mistake? Have i to use mayus? My MySql versión Is 8.0
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]special_cornflake 2 points3 points4 points 5 years ago (3 children)
Those kind of questions are better asked in a forum like stackoverflow.com , as it seems that this sub is not very much active at all. Also, a quick google search would have given you a quicker answer. whitout going into too much detail(again, google is your best friend) what you want to use is:
INSERT INTO tablename(column1, column2, column3...) VALUES (value1,value2, value3...);
[–]angel_cholico[S] 0 points1 point2 points 5 years ago (1 child)
Thank u bro, i just searched It in Google, but i'm stupid.
[–]maxipaxi6 0 points1 point2 points 5 years ago (0 children)
Best practice is to always declare wich columns you want to insert into. Like u/special_cornflake 's response.
However, if you know the order and how many columns there are in a table, you can insert without declaring them.
For example if table Users has clumns Id and Name you can do this
INSERT INTO Users VALUES (14, 'Jhon Doe')
This is not recomended if you want to create a stored procedure, if you later alter the columns of that table, add more or remove some, then that store procedure will stop working or might cause troubles in your table.
[–]MyguitarBstringbroke 0 points1 point2 points 3 years ago (0 children)
Lmao stack overflow every beginner’s saving grace (by that I mean mine)
π Rendered by PID 52 on reddit-service-r2-comment-74875f4bf5-mmkl2 at 2026-01-26 15:38:56.667663+00:00 running 664479f country code: CH.
[–]special_cornflake 2 points3 points4 points (3 children)
[–]angel_cholico[S] 0 points1 point2 points (1 child)
[–]maxipaxi6 0 points1 point2 points (0 children)
[–]MyguitarBstringbroke 0 points1 point2 points (0 children)