تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.NET] استفسار
#2
كود :
Dim command As New SqlCommand("INSERT INTO table_name (image_column) VALUES (@image)", connection)
command.Parameters.AddWithValue("@image", DBNull.Value)
command.ExecuteNonQuery()

كود :
If PictureBox1.Image Is Nothing Then
   Dim command As New SqlCommand("INSERT INTO table_name (image_column) VALUES (@image)", connection)
   command.Parameters.AddWithValue("@image", DBNull.Value)
   command.ExecuteNonQuery()
Else
   ' code to insert the image
End If
الرد }}}
تم الشكر بواسطة: asmarsou


الردود في هذا الموضوع
استفسار - بواسطة ali_ahmed12 - 27-01-23, 08:22 PM
RE: استفسار - بواسطة aljzazy - 28-01-23, 11:36 PM
RE: استفسار - بواسطة ali_ahmed12 - 30-01-23, 01:15 PM
RE: استفسار - بواسطة Jounior_P - 30-01-23, 02:56 PM
RE: استفسار - بواسطة AnyDesk - 01-02-23, 05:49 PM


التنقل السريع :


يقوم بقرائة الموضوع: