Answers for "t sql insert"

SQL
1

TSQL Insert

INSERT INTO TABLE_NAME [(column1, column2, column3,...columnN)]   
VALUES (value1, value2, value3,...valueN);
Posted by: Guest on June-18-2020
3

insert sql

-- sql insert using string format 

        -- you dont need to do this unless you want to specify what
                  --    columns you want to insert
                                 ⬇️
String = "INSERT INTO Marcas (yourcolumn) VALUES(if your value is string use 'your string' and if is a number you dont use the '')";

-- exemple:     
                                                -- because my idcostumer just allows numbers   and that is a text one and i use the ''                                    
                                                         --    and i dont use the ''
                                                                          ⬇️                             ⬇️  
ssql = "INSERT INTO Costumer (idcostumer, costumername) VALUES("textboxidcostumer.Text + ", '" + textboxname.Text + "')";
Posted by: Guest on May-04-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language