|
 |
|
|
�t�@���N�V�����E�C���f�b�N�X�̍쐬 |
|
�X�|���T�[�h�@�����N
�t�@���N�V�����E�C���f�b�N�X�́A���O�ɃC���f�b�N�X�����Ŏg�p��������`���Ēl��ϊ������āA�c���[�\�����쐬���܂��B
�a�c���[�C���f�b�N�X��Ɋ����g�p���Ă��A�C���f�b�N�X�͎g�p���ꂸ�Ƀe�[�u���t���X�L�����ɂȂ�܂����A�t�@���N�V�����C���f�b�N�X���쐬���Ă����ASQL���s���Ɋ����g�p���Ă��A�C���f�b�N�X���g�����������\�ɂȂ�܂��B
CREATE�@[ UNIQUE ]�@INDEX�@�C���f�b�N�X��
�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@ON�@�\���@[ �i�����C�E�E�E�j ]
�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@�@[ TABLESPACE�@�\�̈於 ] |
�t�@���N�V�����E�C���f�b�N�X�̍쐬 |
��P�j�@�\�uemp�v�̗�udept_id�v�Ɋ��ulpad�v���w�肵�āA�C���f�b�N�X���uindex01�v���쐬����
|
create index index01
�@�@on emp( lpad( dept_id, 5) ) |
DEPT_ID��ŁALPAD�����g�p�����r�p�k�ŃC���f�b�N�X���g�p�������������s�����B
|
select * from emp
where ( lpad( dept_id,5) ) = 'D01�@' |
�X�|���T�[�h�@�����N
|
|
|
|
|