Skip to content

Tag: mysql

Issue with SQL Server select statement

I need help with a select statement that I’m currently struggling with. The scenario is this: select * from mytable WHERE isActive=1 and if only id is provided, select everything where the id=@id if firstname and lastname is provided, then select everything where firstname=@firstname and lastname=@lastn…

Unable to import all values from google sheets to sql

I’m trying to import data from google sheets to mysql. I saved the google sheet as .csv. One of the columns square_feet has very few entries so there are a lot of blank cells. I am unable to import any row which has those blank cells. The error I’m getting is. #1366 – Incorrect integer value…

Replacing certain characters of string in column (MySQL)

I have a table in a MySQL database that features a ‘name’ column with values such as: SDP3973455/1 101390375/2 SDP4608677 105859492/1 104295947 As you can see, some values have the characters ‘SPD’ in front and some values have ‘/1 or /2’ at the end of the string. I want to…

Insert a line with different values

How to insert a line ? position the number 12 piece_color the R id 0 and 1 . I want to have two numbers here I did The returned error was: Answer You need to specify the columns to insert if you would like to use VALUES. In your case, it would be something like this:

Creating specific size

I have a table in html.I want to add that table with php on my database. The problem is with my table. I have done that I have 24 positions and that I want to give in my table that those 24 are that size,not 25 and going on..Second,I have B and R that it is the color (It is