psini, thank you very much for your reply.. this is actually an example, so there are probably more fields in table2.:)
In fact, even with just two fields, using a separate table sometimes save me lot of disk spaces and time, i.e. if 'property' varchar(20) becomes varchar(250) or text. In fact, I just refactored one of my big table from 4GB to 2.2GB yesterday by such process(normalization). the new table took 4 hours instead of 2 days to build a huge Unique key constraint. :-)
In reply to Re^2: SQL question: Insertion with FK constraint
by lihao
in thread SQL question: Insertion with FK constraint
by lihao
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |