//表MIS_scjl 建立索引scsj
ls_sql = "CREATE INDEX [i_mis_scjl_scsj] ON [dbo].[MIS_SCJL]([scsj]) ON [PRIMARY]"
Execute Immediate :ls_sql;
If sqlca.sqlcode = 0 Then
If Len(mle_tsxx.text) > 0 Then
mle_tsxx.text = mle_tsxx.text + "~r~n" + "表MIS_scjl加字段scsj索引成功!"
Else
mle_tsxx.text = "表MIS_scjl加字段scsj索引成功!"
End If
Else
If Len(mle_tsxx.text) > 0 Then
mle_tsxx.text = mle_tsxx.text + "~r~n" + "表MIS_scjl加字段scsj索引失败或已存在!"
Else
mle_tsxx.text = "表MIS_scjl加字段scsj索引失败或已存在!"
End If
End If
If sqlca.sqlcode = 0 Then
If Len(mle_tsxx.text) > 0 Then
mle_tsxx.text = mle_tsxx.text + "~r~n" + "增加表mis_scjl成功!"
Else
mle_tsxx.text = "增加表mis_scjl成功!"
End If
Else
If Len(mle_tsxx.text) > 0 Then
mle_tsxx.text = mle_tsxx.text + "~r~n" + "增加表mis_scjl失败或已存在!"
Else
mle_tsxx.text = "增加表mis_scjl失败或已存在!"
End If
End If