alter-table
Postgresql - change the size of a varchar column to lower length
I have a question about the ALT开发者_运维问答ER TABLE command on a really large table (almost 30 millions rows).[详细]
2023-04-12 19:37 分类:问答shrinking a column in oracle
Lets say i have a table with the following definition create table dummy (col1 number(9) not null) All the values开发者_Go百科 in this dummy.col1 are 7 digit long. Now i want to reduce the length o[详细]
2023-04-12 18:06 分类:问答Add cluster to an existing table in oracle
Is it possible to add cluster to an existing table? For example... I have a table: CREATE TABLE table_name([详细]
2023-04-11 12:54 分类:问答Cannot alter table (add unique constraint) in a SQL PL store procedure for db2
I am trying to create a store procedure in SQL PL for db2. A new field needs to be added as part of the unique key, so I need to drop the previous uk first, and then add the new unique key. That worke[详细]
2023-04-10 07:37 分类:问答mysql drop foreign key without table copy
I have an InnoDB table claims which has about 240 million rows. The table has a foreign key constraint: CONSTRAINT FK78744BD7307102A9 FOREIGN KEY (ID) REFERENCES claim_details (ID). I want to delete t[详细]
2023-04-02 09:42 分类:问答SQL Server Compact alter column size with constraint?
I am trying to modify the size of a column in a table, however that column is a primary key column and is used in other table ( which would need to have its size modified too)[详细]
2023-03-28 10:43 分类:问答ALTER table - adding AUTOINCREMENT in MySQL
I created a table in MySQL with on column itemID. After creating the table, now I want to change this column to AUTOINCREMENT.[详细]
2023-03-26 08:01 分类:问答How to add a foreign key in an existing table?
I have three tables: 1. User (id, name, birthdate)- PRIMARY KEY (\'id\') 2. Contact ( id, contact, verified ) - PRIMARY KEY (\'id\')[详细]
2023-03-26 06:00 分类:问答Equivalent of C# 'readonly' for an MS SQL column?
Imagine there is a Price column in Products table, and the price may change. I\'m fine with it changing but I want to store the original Price value in another column.[详细]
2023-03-24 21:49 分类:问答Foreign keys with mySQL
I have a table that references a reservation and a product, but I can\'t add any foreign key. Here is the table :[详细]
2023-03-24 11:53 分类:问答