• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

Delete row from a table directly.

How can I delete a row from table directly in VB.NET ?

For example:

delete from auto_payment where payment_id ='xxx'

how to express this SQL statement directly  in VB.NET ?

0
vbhaha
Asked:
vbhaha
  • 2
1 Solution
 
DabasCommented:
Hi vbhaha,
Dim cm as new SqlCommand("Delete from auto_payment where payment_id ='xxx'", cn) 'cn is a connection to your data
cm.ExecuteNonQuery


Dabas
0
 
DabasCommented:
vbhaha,
Why just a B?
This is the last answer you get from me

Dabas
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now