c# - win form app: add new item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • firstimer
    New Member
    • Nov 2008
    • 4

    c# - win form app: add new item

    what is the code for button add new item in data base im using a postgerSQL data base.. thank for the reply.. i' m already connected in database.
  • vanc
    Recognized Expert New Member
    • Mar 2007
    • 211

    #2
    Should it be an Insert statement?

    Comment

    • firstimer
      New Member
      • Nov 2008
      • 4

      #3
      yes it will insert a new data to my database..my problem is to have a code that will insert a new row to my database..once you click the Add new button.. thank you a lot..

      Comment

      • vanc
        Recognized Expert New Member
        • Mar 2007
        • 211

        #4
        Originally posted by firstimer
        yes it will insert a new data to my database..my problem is to have a code that will insert a new row to my database..once you click the Add new button.. thank you a lot..
        What do you mean a code? .Net code or SQL statement? It's very confusing if you don't specify your needs clearly.

        .Net code should be something like
        Code:
        command = "Insert......";
        command.ExecuteNonQuery();

        Comment

        Working...