Diff for scripts/perl/oracle/oracledump.pl between version 1.26 and 1.27
| version 1.26, 2008/08/23 14:22:41 |
version 1.27, 2008/08/23 14:32:02 |
|
|
| #!/usr/bin/perl |
#!/usr/bin/perl |
| |
|
| # $Platon: scripts/perl/oracle/oracledump.pl,v 1.25 2008-08-23 14:21:25 nepto Exp $ |
# $Platon: scripts/perl/oracle/oracledump.pl,v 1.26 2008-08-23 14:22:41 nepto Exp $ |
| |
|
| use strict; |
use strict; |
| |
|
|
|
| data_default, |
data_default, |
| nullable |
nullable |
| FROM all_tab_columns |
FROM all_tab_columns |
| WHERE UPPER(table_name) = \''.$table.'\' |
WHERE data_type != \'XMLTYPE\' |
| |
AND UPPER(table_name) = \''.$table.'\' |
| AND UPPER(owner) = \''.$opt_owner.'\''; |
AND UPPER(owner) = \''.$opt_owner.'\''; |
| } else { |
} else { |
| $query = 'SELECT column_name, |
$query = 'SELECT column_name, |
|
|
| data_default, |
data_default, |
| nullable |
nullable |
| FROM user_tab_columns |
FROM user_tab_columns |
| WHERE UPPER(table_name) = \''.$table.'\''; |
WHERE data_type != \'XMLTYPE\' |
| |
AND UPPER(table_name) = \''.$table.'\''; |
| } |
} |
| |
|
| $sth = $dbh->prepare($query); |
$sth = $dbh->prepare($query); |
Platon Group <platon@platon.org> http://platon.org/
|
|