About 23,700,000 results
Open links in new tab
  1. SQL ALTER TABLE Statement - W3Schools

    SQL ALTER TABLE Statement. The ALTER TABLE statement is used to add, delete, or modify columns in an existing table. The ALTER TABLE statement is also used to add and drop …

  2. How to Modify Existing Data in SQL? | GeeksforGeeks

    Dec 17, 2024 · The ALTER TABLE statement in SQL is a powerful command used to modify the structure of an existing table without affecting its data. It enables changes like adding, …

  3. SQL Format Number with CAST, CONVERT and more - SQL Server …

    Dec 27, 2024 · Use SQL format number functions like CAST, CONVERT, ROUND, CEILING, FLOOR and FORMAT for number formatting in SQL.

  4. How do I alter the precision of a decimal column in Microsoft SQL ...

    Sep 23, 2008 · ALTER TABLE (Your_Table_Name) MODIFY (Your_Column_Name) DATA_TYPE(); For you problem: ALTER TABLE (Your_Table_Name) MODIFY …

  5. SQL Server ALTER TABLE ALTER COLUMN By Examples

    In this tutorial, you will learn how to use the SQL Server ALTER TABLE ALTER COLUMN statement to modify a column of a table.

  6. Formatting Numbers in SQL Server

    In this tutorial, we explored various SQL Server T-SQL functions that can be used to format numbers. By using functions such as CAST, CONVERT, ROUND, FLOOR, CEILING, and …

  7. How to Format Numbers in SQL Server - Database.Guide

    May 3, 2018 · Starting from SQL Server 2012, you can format numeric types using the T-SQL FORMAT() function. This function accepts three arguments; the number, the format, and an …

  8. decimal and numeric (Transact-SQL) - SQL Server | Microsoft Learn

    Mar 31, 2025 · In Transact-SQL statements, a constant with a decimal point is automatically converted into a numeric data value, using the minimum precision and scale necessary. For …

  9. How to Modify Decimal Precision in SQL Server - iifx.dev

    Apr 26, 2025 · To alter the precision of a decimal column, you can use the ALTER TABLE statement with the ALTER COLUMN clause: ALTER COLUMN YourColumnName decimal …

  10. sql - How to update the first digit of a number only? - Stack Overflow

    Oct 19, 2009 · So, if you want to add 1 to the first digit, add 1 * 1000 (=1000) to the number; if you want to subtract 1, add -1 * 1000 (=-1000) to the number. Of course, you'll want to be careful …

  11. Some results have been removed