2006.08.22 Tuesday | 14:09

  SQLServer default ���� ��Ͽ

�����ɲ�
( ������ɲû�����������Ǥϡ�����̾�ϼ�ư���� )

ALTER TABLE [�ơ��֥�̾]
ADD CONSTRAINT [����̾]
DEFAULT �� FOR [��̾]


����ɽ��

SELECT 
	(select text from syscomments where id = sys2.id) as default_value
	,sys1.name,sys1.crdate,sys2.name
 from
   sysobjects as sys1 INNER JOIN sysobjects as sys2
 on sys1.id = sys2.parent_obj
 where
   sys1.xtype = 'U' and sys2.xtype = 'D' 
 order by
   sys1.name


������

alter table [�ơ��֥�̾]
drop constraint [����̾]


����Ǥ�����

1) ����͡�
2) �ؿ���
3) SQL-92 �˥�ǥ��å��ؿ�
4) NULL

���˥�ǥ��å��ؿ�
CURRENT_TIMESTAMP ���ߤ����դȻ���
CURRENT_USER ������¹Ԥ��Ƥ���桼������̾��
SESSION_USER ������¹Ԥ��Ƥ���桼������̾��
SYSTEM_USER ������¹Ԥ��Ƥ���桼������̾��
USER ������¹Ԥ��Ƥ���桼������̾��

CURRENT_TIMESTAMP �� getdate() ��Ʊ��