📅  最后修改于: 2022-03-11 15:05:27.505000             🧑  作者: Mango
-- 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 + "')";