About 1,930,000 results
Open links in new tab
  1. Remove decimal values using SQL query - Stack Overflow

    Dec 15, 2018 · If it's a decimal data type and you know it will never contain decimal places you can consider setting the scale property to 0. For example to decimal(18, 0). This will save you from replacing the ".00" characters and the query will be faster.

  2. Delete record from SQL database in VB.NET - Stack Overflow

    You can't delete only specific columns from a record. You either delete the whole record or do nothing, and so there is no column list portion to a DELETE statement.

  3. How to delete a row in sql using vb.net - Stack Overflow

    Feb 8, 2023 · The syntax required to delete a row in the database table requires at least three parts. The DELETE command; The FROM statement to identify the table where the delete action should occur; The WHERE condition to identify the record (or records) to delete; So it is a string like this: DELETE FROM tablename WHERE condition

  4. SQL Query to Remove Decimal Values - GeeksforGeeks

    Jan 6, 2025 · Removing or adjusting decimal values in SQL can be efficiently handled using functions like ROUND(), FLOOR(), and CAST(). Each function has its unique purpose: the ROUND() function helps round values to a specific number of decimal places, which is useful for generating more readable outputs.

  5. How to: Delete Rows From the Database - ADO.NET

    Sep 14, 2021 · If you want to delete a row in a table that has constraints against it, you must complete either of the following tasks: Set the ON DELETE CASCADE rule in the foreign-key constraint in the database. Use your own code to first delete the child objects that prevent the parent object from being deleted. Otherwise, an exception is thrown.

  6. Deleting Data in VB.Net and SQL Server 2018 Database

    Oct 21, 2019 · This functionality will help you to delete the selected data in the datagridview and it will also automatically delete the data in the SQL Server database when the button is clicked. Let's begin. Creating Application Step 1 Open Retrieving Data in VB.Net and SQL Server 2018. Step 2 Add a button in the Form and name it “Delete”. Then ...

  7. DELETE ROWS IN DATA TABLE USING QUERY - DaniWeb

    Jun 10, 2013 · Dim rows As DataRow() = dtable.[Delete]("ct = '" & CInt(objChkArray(i)) & "'") For Each row As DataRow In rows . dtable.ImportRow(row) Next Next. With 'row' is the row which you want to remove. I think it probably the same. You can change "Ct='abc'" with your query and "Ct" with your sorting column. Dim Dr() As DataRow.

  8. Visual Basic .NET: Delete a Record from a Database - Home and …

    ds.Tables("AddressBook").Rows(inc).Delete() Just as there is an Add method of the DataSet Rows property, so there is a Delete method. You don't need anything between the round brackets, this time.

  9. Delete Remove Rows from DataGridView and Database in …

    Aug 23, 2019 · In this article I will explain with an example, how to delete (remove) Rows from DataGridView and Database in Windows (WinForms) Application using C# and VB.Net.

  10. How to remove trailing zeros and decimal? - SQLServerCentral

    Nov 16, 2012 · So from the db it'll pull "ABC Company" and "1500000" and show "ABC Company (1.50M)". I would like to trim the trailing zeros and/or the decimal point when needed. For example, 1.30 should be...

Refresh