由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Q on adding new column
相关主题
How to replace 0 with empty?foreign key reference to two tables? how to do it?
In MySQL, 如何在procedure里create trigger?谢谢了?初级问题
SQL combine two columns from two different tables no shared (转载)请教一个问题
Table Merge (SQL Server)如何only update the first occurrence in a table
其实有个问题好久没有明白!help about SQL for ACCESS
analyze 在oracle里怎么用?column in table point to another table
问个external table field definition的问题sql question
How to handle inserting value to Identity column in sql server 2005mysql maximum columns <=1000?
相关话题的讨论汇总
话题: column话题: adding话题: new话题: program话题: table
进入Database版参与讨论
1 (共1页)
g***y
发帖数: 27
1
Just a thought question: could adding new column crash the program that is
using the table?
b*e
发帖数: 3845
2
depending on how the program was written.
If somebody write "insert table t1 values ('xx','xx'...)" without specifying
the column names, then the program will get crashed.

【在 g***y 的大作中提到】
: Just a thought question: could adding new column crash the program that is
: using the table?

y***n
发帖数: 11
3
I am not sure how a commercial DB is really implemented, but my feeling is
that if a new column is added to the table, the program should get exclusive
lock on the table first and after it gets the lock, it can proceed with adding
new column, right? If so, then existing operations will not be affected
because they will either have IS or IX or S or X lock on the table and all of
them are incompatible with xlock. The program that trys to add new column will
be blocked till all existing program fin

【在 b*e 的大作中提到】
: depending on how the program was written.
: If somebody write "insert table t1 values ('xx','xx'...)" without specifying
: the column names, then the program will get crashed.

1 (共1页)
进入Database版参与讨论
相关主题
mysql maximum columns <=1000?其实有个问题好久没有明白!
Basic oracle questions.analyze 在oracle里怎么用?
Please help: Innodb table could not drop a column问个external table field definition的问题
Re: Please help: Innodb table could notHow to handle inserting value to Identity column in sql server 2005
How to replace 0 with empty?foreign key reference to two tables? how to do it?
In MySQL, 如何在procedure里create trigger?谢谢了?初级问题
SQL combine two columns from two different tables no shared (转载)请教一个问题
Table Merge (SQL Server)如何only update the first occurrence in a table
相关话题的讨论汇总
话题: column话题: adding话题: new话题: program话题: table