About 304,000 results
Open links in new tab
  1. How to Check Who Created the Table in SQL Server

    Apr 3, 2025 · Next, let’s alter the table to verify we’re getting the most complete picture of the activity as well as the logins of those who created or altered the objects.--MSSQLTips.com alter table table_example add col2 nvarchar(500) Below is the same script but modified for EventSubClass = 1.

  2. PostgreSQL: Documentation: 18: ALTER TABLE

    Description. ALTER TABLE changes the definition of an existing table. There are several subforms described below. Note that the lock level required may differ for each subform. An ACCESS EXCLUSIVE lock is acquired unless explicitly noted. When multiple subcommands are given, the lock acquired will be the strictest one required by any subcommand.

  3. PostgreSQL: Documentation: 18: ALTER SCHEMA

    1 day ago · Description. ALTER SCHEMA changes the definition of a schema.. You must own the schema to use ALTER SCHEMA.To rename a schema you must also have the CREATE privilege for the database. To alter the owner, you must be able to SET ROLE to the new owning role, and that role must have the CREATE privilege for the database. (Note that superusers have all these privileges automatically.)

  4. PostgreSQL: Documentation: 18: ALTER FOREIGN TABLE

    1 day ago · Compatibility. The forms ADD, DROP, and SET DATA TYPE conform with the SQL standard. The other forms are PostgreSQL extensions of the SQL standard. Also, the ability to specify more than one manipulation in a single ALTER FOREIGN TABLE command is an extension.. ALTER FOREIGN TABLE DROP COLUMN can be used to drop the only column of a foreign table, leaving a zero-column table.

  5. SQL Server Temporal Tables Quick Start Guide

    21 hours ago · System versioned tables have been available since SQL Server 2016 and are also available in Azure SQL. Retention period is set to infinite by default, but can be adjusted after table creation. These tables are automatically picked up in Availability groups. History tables can be queried directly using standard T-SQL, but cannot be updated directly.

  6. Techniques to query Azure SQL’s new JSON Datatype

    1 day ago · The new JSON field type and new functions in Azure SQL brings a new world of possibilities for JSON manipulation in SQL Databases. ... alter table testOrders add constraint chkPrice CHECK (JSON ... The image below shows an example of how the column names are explicitly defined in the query: This syntax can pose a limit: If the number of ...

  7. PostgreSQL: Documentation: 18: ALTER INDEX

    1 day ago · These operations are also possible using ALTER TABLE. ALTER INDEX is in fact just an alias for the forms of ALTER TABLE that apply to indexes. There was formerly an ALTER INDEX OWNER variant, but this is now ignored (with a warning). An index cannot have an owner different from its table's owner. Changing the table's owner automatically changes ...

  8. PostgreSQL: Documentation: 18: 5.7. Modifying Tables

    1 day ago · Tip. Adding a column with a constant default value does not require each row of the table to be updated when the ALTER TABLE statement is executed. Instead, the default value will be returned the next time the row is accessed, and applied when the table is rewritten, making the ALTER TABLE very fast even on large tables.. If the default value is volatile (e.g., clock_timestamp()) each row will ...

  9. PostgreSQL: Documentation: 18: ALTER PUBLICATION

    1 day ago · Description. The command ALTER PUBLICATION can change the attributes of a publication.. The first three variants change which tables/schemas are part of the publication. The SET clause will replace the list of tables/schemas in the publication with the specified list; the existing tables/schemas that were present in the publication will be removed. The ADD and DROP clauses will add and remove ...

  10. PostgreSQL: Documentation: 18: ALTER TABLESPACE

    1 day ago · Description. ALTER TABLESPACE can be used to change the definition of a tablespace.. You must own the tablespace to change the definition of a tablespace. To alter the owner, you must also be able to SET ROLE to the new owning role. (Note that superusers have these privileges automatically.)

  11. Some results have been removed
Refresh