"drop all tables db2" Code Answer's
You're definitely familiar with the best coding language SQL that developers use to develop their projects and they get all their queries like "drop all tables db2" answered properly. Developers are finding an appropriate answer about drop all tables db2 related to the SQL coding language. By visiting this online portal developers get answers concerning SQL codes question like drop all tables db2. Enter your desired code related query in the search bar and get every piece of information about SQL code related question on drop all tables db2.
drop all tables db2
select 'drop index "' || TRIM(INDSCHEMA) || '"."' || TRIM(INDNAME) || '";'
from SYSCAT.INDEXES
where UNIQUERULE = 'D'
and INDSCHEMA = (select current schema from SYSIBM.SYSDUMMY1);
select 'alter table "' || TRIM(TABSCHEMA) || '"."' || TRIM(TABNAME) || '" drop foreign key "' || TRIM(CONSTNAME) || '";'
from SYSCAT.TABCONST
where TYPE = 'F'
and TABSCHEMA = (select current schema from SYSIBM.SYSDUMMY1)
select 'alter table "' || TRIM(TABSCHEMA) || '"."' || TRIM(TABNAME) || '" drop unique "' || TRIM(INDNAME) || '";'
from SYSCAT.INDEXES
where UNIQUERULE = 'U'
and INDSCHEMA = (select current schema from SYSIBM.SYSDUMMY1);
select 'alter table "' || TRIM(TABSCHEMA) || '"."' || TRIM(TABNAME) || '" drop primary key;'
from SYSCAT.INDEXES
where UNIQUERULE = 'P'
and INDSCHEMA = (select current schema from SYSIBM.SYSDUMMY1);
select 'drop table "' || TRIM(TABSCHEMA) || '"."' || TRIM(TABNAME) || '";'
from SYSCAT.TABLES
where TYPE = 'T'
and TABSCHEMA = (select current schema from SYSIBM.SYSDUMMY1);
select 'drop view "' || TRIM(TABSCHEMA) || '"."' || TRIM(TABNAME) || '";'
from SYSCAT.TABLES
where TYPE = 'V'
and TABSCHEMA = (select current schema from SYSIBM.SYSDUMMY1);
Source: stackoverflow.com
All those coders who are working on the SQL based application and are stuck on drop all tables db2 can get a collection of related answers to their query. Programmers need to enter their query on drop all tables db2 related to SQL code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about drop all tables db2 for the programmers working on SQL code while coding their module. Coders are also allowed to rectify already present answers of drop all tables db2 while working on the SQL language code. Developers can add up suggestions if they deem fit any other answer relating to "drop all tables db2". Visit this developer's friendly online web community, CodeProZone, and get your queries like drop all tables db2 resolved professionally and stay updated to the latest SQL updates.