oracle-sqldeveloper

Oracle SQL Developer and PostgreSQL

自古美人都是妖i 提交于 2019-11-26 10:24:54
问题 I\'m trying to connect to a PostgreSQL 9.1 database using Oracle SQL Developer 3.0.04, but I\'m not having any success so far. First, if I add a third party driver on preferences, when adding a new connection there\'s no tab for PostgreSQL (it works fine for MySQL though). I\'m using a JDBC4 version 9.1 driver, but I tried a JDBC3 of the same version and still get the same thing. Second, there\'s nothing like manual configuration tab when adding a new connection. The closest is the Advanced

How to export query result to csv in Oracle SQL Developer?

半城伤御伤魂 提交于 2019-11-26 10:13:31
I'm using Oracle SQL Developer 3.0. Trying to figure out how to export a query result to a text file (preferably CSV). Right clicking on the query results window doesn't give me any export options. Version I am using Update 5th May 2012 Jeff Smith has blogged showing, what I believe is the superior method to get CSV output from SQL Developer. Jeff's method is shown as Method 1 below: Method 1 Add the comment /*csv*/ to your SQL query and run the query as a script (using F5 or the 2nd execution button on the worksheet toolbar) That's it. Method 2 Run a query Right click and select unload.

NLS_NUMERIC_CHARACTERS setting for decimal

丶灬走出姿态 提交于 2019-11-26 09:56:13
问题 I have one db setup in a test machine and second in production machine. When I run: select to_number(\'100,12\') from dual Then it gives error in test machine. However, this statement works quite fine in production machine. Now, when I check for NLS_NUMERIC_CHARACTERS then I see \',\' (comma) in both machine. Is there anywhere else I should be looking for the decimal setting? Cheers! 回答1: You can see your current session settings by querying nls_session_parameters : select value from nls

Oracle SQL escape character (for a '&')

谁说我不能喝 提交于 2019-11-26 08:19:39
问题 While attempting to execute SQL insert statements using Oracle SQL Developer I keep generating an \"Enter substitution value\" prompt: insert into agregadores_agregadores ( idagregador, nombre, url ) values ( 2, \'Netvibes\', \'http://www.netvibes.com/subscribe.php?type=rss\\&url=\' ); I\'ve tried escaping the special character in the query using the \'\\\' above but I still can\'t avoid the ampersand, \'&\', causing a string substitution. 回答1: the & is the default value for DEFINE, which

How can I find which tables reference a given table in Oracle SQL Developer?

╄→гoц情女王★ 提交于 2019-11-26 04:58:06
问题 In Oracle SQL Developer, if I\'m viewing the information on a table, I can view the constraints, which let me see the foreign keys (and thus which tables are referenced by this table), and I can view the dependencies to see what packages and such reference the table. But I\'m not sure how to find which tables reference the table. For example, say I\'m looking at the emp table. There is another table emp_dept which captures which employees work in which departments, which references the emp

How to export query result to csv in Oracle SQL Developer?

柔情痞子 提交于 2019-11-26 03:27:38
问题 I\'m using Oracle SQL Developer 3.0. Trying to figure out how to export a query result to a text file (preferably CSV). Right clicking on the query results window doesn\'t give me any export options. 回答1: Version I am using Update 5th May 2012 Jeff Smith has blogged showing, what I believe is the superior method to get CSV output from SQL Developer. Jeff's method is shown as Method 1 below: Method 1 Add the comment /*csv*/ to your SQL query and run the query as a script (using F5 or the 2nd

Printing the value of a variable in SQL Developer

浪尽此生 提交于 2019-11-26 02:08:44
问题 I wanted to print the value of a particular variable which is inside an anonymous block. I am using Oracle SQL Developer. I tried using dbms_output.put_line . But it is not working. The code which I am using is shown below. SET SERVEROUTPUT ON DECLARE CTABLE USER_OBJECTS.OBJECT_NAME%TYPE; CCOLUMN ALL_TAB_COLS.COLUMN_NAME%TYPE; V_ALL_COLS VARCHAR2(500); CURSOR CURSOR_TABLE IS SELECT OBJECT_NAME FROM USER_OBJECTS WHERE OBJECT_TYPE=\'TABLE\' AND OBJECT_NAME LIKE \'tb_prm_%\'; CURSOR CURSOR

How can I set a custom date time format in Oracle SQL Developer?

本小妞迷上赌 提交于 2019-11-26 00:46:57
问题 By default, Oracle SQL developer displays date values as 15-NOV-11 . I would like to see the time part (hour/minute/second) by default. Is there a way to configure this within Oracle SQL Developer? 回答1: You can change this in preferences: From Oracle SQL Developer's menu go to: Tools > Preferences . From the Preferences dialog, select Database > NLS from the left panel. From the list of NLS parameters, enter DD-MON-RR HH24:MI:SS into the Date Format field. Save and close the dialog, done!

How to load a large number of strings to match with oracle database?

こ雲淡風輕ζ 提交于 2019-11-25 23:23:00
问题 I am currently learning PL/SQL so i am still a newbie. Assume that you have a production database, which you connect to using Oracle SQL developer. You have ONLY READ privilges to that databases. Therefore you cannot create or edit any tables. My question is, if i have a big list of IDs, which i have to join with a table in that database, how can i do that? Obviously, I can load the IDs onto a temporary table and then do a join, but that would be really tedious as i have only READ privileges.