Verificar se tabela existe no banco de dados
Ao iniciar meu sistema preciso verificar se uma tabela existe no meu banco de dados, para o Oracle uso:
Select Count(*) from ALL_TABLES where TABLE_NAME = ´´MOVABFEC´´ and OWNER =
Para o SLQ Server:
select Count(*) from sysobjects where name = ´´MOVABFEC´´
E agora preciso acessar também o InterBase, alguém poderia me dar uma luz.
Select Count(*) from ALL_TABLES where TABLE_NAME = ´´MOVABFEC´´ and OWNER =
Para o SLQ Server:
select Count(*) from sysobjects where name = ´´MOVABFEC´´
E agora preciso acessar também o InterBase, alguém poderia me dar uma luz.
Andreyrf
Curtidas 0
Respostas
Jycn
28/05/2003
Olá
Tente
select rdb$relation_name from rdb$relations
where rdb$relation_name=´NOME_DA_TABELA´;
Jycn
Tente
select rdb$relation_name from rdb$relations
where rdb$relation_name=´NOME_DA_TABELA´;
Jycn
GOSTEI 0