Goran Bibic

Goran Bibic

  • 475
  • 2.9k
  • 201k

Insert into sql with - char

Dec 12 2019 6:02 AM
Insert into sql with "-" char
 
  1. using (SqlCommand cmd = new SqlCommand("INSERT INTO dbo.mp_list (iznos_sa_pdv, kupac) VALUES(@iznos_sa_pdv)", con))  
  2. {  
  3. cmd.Parameters.Add("@iznos_sa_pdv", SqlDbType.VarChar, 255).Value = ukupnolabel.Text;  

 I have result    exp  1.00
 
How to insert into to have value -1.00
 
Thank you
 

 

Answers (2)