data-dictionary

Oracle: Script similar to describe command

二次信任 提交于 2019-12-11 18:56:06
问题 I'm being asked to create a script that basically does the same thing as the describe command. I have figured out how to write the script and get the output I want, but the second part of the assignment is to "duplicate the format of the describe command" I'm stumped, is there really a way to simply duplicate that format? 回答1: Assuming your query is something like (note that I'm not bothering to handle every different data type) select column_name "Name", (case when nullable = 'N' then 'NOT

QuickFIX counterparty DataDictionary gieves invalid type exception

試著忘記壹切 提交于 2019-12-11 05:34:54
问题 I am developing a FIX4.4 messaging application in C# and trying to use a counterparty provided data dictionary. In the project I use QuickFIX as a library, and when using the original dictionary provided within the library (FIX44.xml) everything works fine. However, using such dictionary causes some rejections which, according to the counterparty, should disappear once I switch to their own data dictionary. Now, when I do that I get the following exception of type 'QuickFix

mysql: SHOW TABLES - define column name

天大地大妈咪最大 提交于 2019-12-11 00:32:18
问题 I am doing a mySQL 'SHOW TABLES' with a 'LIKE'. For example: show TABLES like 'address_%' ... to return all tables that start with 'address_'. That works fine. The table name that is returned has a column name of Tables_in_username_users (address_%) Is there a way to define the name of this column in the 'SHOW TABLES" command (to say 'address tables')? This is not only easier but if I change the 'like' search criteria the column name changes and this is problematical when processing the

Utility to create “data dictionary” for MySQL database

家住魔仙堡 提交于 2019-12-10 16:24:02
问题 I'm wondering if there is a utility that exists to create a data dictionary for a MySQL database. I'm considering just writing a php script that fetches the meta data about the database and displays it in a logical format for users to understand but I'd rather avoid that if there is some pre-built utility out there that can simply do this for me. 回答1: Have you looked into HeidiSQL or phpMyAdmin? Also, MySQL Admin. Edit#1 fixed typo, added more info 回答2: Looks like MySQL Admin is now MySQL

Does index_id=0 in sys.indexes refer to the table itself?

烈酒焚心 提交于 2019-12-10 10:38:30
问题 Unfortunately the BOL is a little vague on this, but index_id = 0 on sys.indexes or sys.partitions appears to refer to the table itself where there is no clustered index on the table. True - or am I missing something? 回答1: Does index_id=0 in sys.indexes refer to the table itself? No, For heap based tables it will always exist and it refers to the IAM (Index Allocation Map). For tables with clustered indexes it will not exist. Notice the "type_desc" is HEAP on these indexes, there is a really

Does index_id=0 in sys.indexes refer to the table itself?

三世轮回 提交于 2019-12-06 09:28:54
Unfortunately the BOL is a little vague on this, but index_id = 0 on sys.indexes or sys.partitions appears to refer to the table itself where there is no clustered index on the table. True - or am I missing something? Does index_id=0 in sys.indexes refer to the table itself? No, For heap based tables it will always exist and it refers to the IAM (Index Allocation Map). For tables with clustered indexes it will not exist. Notice the "type_desc" is HEAP on these indexes, there is a really good blog entry about the Index Allocation Map . So, Heap tables (ones with no clustered index) will always

Export Data Dictionary of my database using MySQL Workbench CE?

牧云@^-^@ 提交于 2019-12-05 11:58:00
I have a database on server with around 60 tables and now I want to export Data Dictionary of the database (including table structures).. I can do that on my local machine which has PHPMyAdmin , however, I am not able to find way to export it on server using Workbench . Any one who can help? You may install db_doc.lua, a Lua script plugin for MySQL Workbench that generates data dictionaries, similar to those generated by DBDoc on MySQL Workbench Enterprise. Download it from: https://docs.google.com/file/d/0BxXM2ftdUPGeNkM4OGpiYmFxdFk/edit?pli=1 Plugin developer's website http://tmsanchezdev

Check Postgres access for a user

非 Y 不嫁゛ 提交于 2019-12-04 08:50:23
问题 I have looked into the documentation for GRANT Found here and I was trying to see if there is a built-in function that can let me look at what level of accessibility I have in databases. Of course there is: \dp and \dp mytablename But this does not show what my account has access to. I would like to see ALL the tables I have access to. Can anyone tell me if there is a command that can check my level of access in Postgres (whether I have SELECT , INSERT , DELETE , UPDATE privileges)? And if so

Check Postgres access for a user

依然范特西╮ 提交于 2019-12-03 01:04:07
I have looked into the documentation for GRANT Found here and I was trying to see if there is a built-in function that can let me look at what level of accessibility I have in databases. Of course there is: \dp and \dp mytablename But this does not show what my account has access to. I would like to see ALL the tables I have access to. Can anyone tell me if there is a command that can check my level of access in Postgres (whether I have SELECT , INSERT , DELETE , UPDATE privileges)? And if so, what would that command be? You could query the table_privileges table in the information schema:

How can you tell which columns are unused in ALL_TAB_COLS?

守給你的承諾、 提交于 2019-12-01 08:45:16
When you query the ALL_TAB_COLS view on Oracle 9i, it lists columns marked as UNUSED as well as the 'active' table columns. There doesn't seem to be a field that explicitly says whether a column is UNUSED, or any view I can join to that lists the unused columns in a table. How can I easily find out which are the unused columns, so I can filter them out of ALL_TAB_COLS? Try using ALL_TAB_COLUMNS instead of ALL_TAB_COLS. In Oracle 11.2 I find that unused columns appear in ALL_TAB_COLS (though renamed) but not in ALL_TAB_COLUMNS. I created a table like this: create table t1 (c1 varchar2(30), c2