plsqldeveloper

PL/SQL Developer displays does not display Hebrew characters properly

只愿长相守 提交于 2019-12-20 05:11:47
问题 Hi all, I've uploaded a photo of the way I see dates in PL/SQL Developer, I see question marks instead of the full date (need to look like "02-Aug-2013 13:50:21.663" for instance, as seen on other computers)... If someone have any idea what on my preferences makes it look like this - I'd love to know... Thanks! UPDATE: NLS Parameters: NLS DB Parameters: 回答1: The issue seems to be due to mismatch between NLS parameters in client and database . For such questions, always remember to post the OS

PL/SQL Developer displays does not display Hebrew characters properly

烂漫一生 提交于 2019-12-20 05:11:31
问题 Hi all, I've uploaded a photo of the way I see dates in PL/SQL Developer, I see question marks instead of the full date (need to look like "02-Aug-2013 13:50:21.663" for instance, as seen on other computers)... If someone have any idea what on my preferences makes it look like this - I'd love to know... Thanks! UPDATE: NLS Parameters: NLS DB Parameters: 回答1: The issue seems to be due to mismatch between NLS parameters in client and database . For such questions, always remember to post the OS

Generate test data using Oracle PL/SQL developer

笑着哭i 提交于 2019-12-18 17:04:45
问题 I want to test some schemas and indexes, and I was wondering if there is a functionality in PL/SQL Developer that can generate test data (so I won't have to create sequences and loops to insert data in the tables). 回答1: Loops and PL/SQL aren't always necessary; this trick might be helpful: insert into emp(id, name, salary) select rownum, 'Employee ' || to_char(rownum), dbms_random.value(2, 9) * 1000 from dual connect by level <= 100; will generate 100 records, named Employee 1 through

Why do I get an open transaction when just selecting from a database View?

霸气de小男生 提交于 2019-12-18 15:56:12
问题 If I execute a simple select statement in pl/sql developer against a database table, I get a standard set of results back as I would expect. Recently, I pasted a query from a stored procedure that happened to select from a view, and noticed that a transaction was seemingly left open. This was appraent by the rollback and commit options were available in PL/SQL developer. A poll of other developers revealed that this seems to affect some but not others, which lead me to suspect PL/SQL

Setting a value for LIMIT while using bulk collect

痞子三分冷 提交于 2019-12-17 19:36:49
问题 I wanted to know if we have any technique by which we can calculate the value which needed to be set for a LIMIT clause of bulk collect operation. For example below, lets say our cursor has 10 Million records..What is the value which we can set for LIMIT clause to have optimum performance. Is there any way we can calculate it. decalre cursor c_emp is <some select query> var <variable> ; begin open c_emp; loop fetch c_emp bulk collect into var limit 2; exit when c_emp%NOTFOUND; end loop; close

Oracle Convert Seconds to Hours:Minutes:Seconds

…衆ロ難τιáo~ 提交于 2019-12-17 17:45:21
问题 I have a requirement to display user available time in Hours:Minutes:Seconds format from a given total number of seconds value. Appreciate if you know a ORACLE function to do the same. I'm using Oracle. Thank you for your time. 回答1: If you're just looking to convert a given number of seconds into HH:MI:SS format, this should do it SELECT TO_CHAR(TRUNC(x/3600),'FM9900') || ':' || TO_CHAR(TRUNC(MOD(x,3600)/60),'FM00') || ':' || TO_CHAR(MOD(x,60),'FM00') FROM DUAL where x is the number of

all row values in one column

守給你的承諾、 提交于 2019-12-14 04:27:23
问题 I would like to display all values in one column. How may I do so? Data looks like this: ----------------------------------------------- | user_id | degree_fi | degree_en | degree_sv | ----------------------------------------------- | 3601464 | 3700 | 1600 | 2200 | | 1020 | 100 | 0 | 0 | | 3600520 | 100 | 1300 | 1400 | | 3600882 | 0 | 100 | 200 | | 3600520 | 3200 | 800 | 600 | | 3600520 | 400 | 3000 | 1500 | ----------------------------------------------- What I would like to have is this: --

PL/SQL Developer Test Window for Stored Procedure turns number value into scientific notation

北城余情 提交于 2019-12-14 04:09:43
问题 I'm using PL/SQL Developer using the Test Window to test a Stored Procedure that accepts a value of type Number. The value I'm passing to the Stored Procedure is 37788024213340161. However, I noticed that PL/SQL converts that value to scientific notation and rounds up, and passes a different value to the Stored Procedure instead: (3.77880242133402E16) Thus, when executing the Stored Procedure, it ends up using the rounded-up value rather than the value I intended it to use. The value that

How to substitute bind variable in pl/sql developer tool

穿精又带淫゛_ 提交于 2019-12-13 17:25:55
问题 I would like to run a SQL script in PL/SQL developer as following example. variable vTest varchar2; (exec/set) :vTest := 'ABC' select :vTest from dual; select :vTest ||'XYZ' from dual ; select * from table where columnname = :vTest; 回答1: You can do this in a Test Window. First do a grant debug connect session to <schema> Then open a new Test window. Declare your bind variables at the bottom of the screen. You give them a name, a type and a value there. 来源: https://stackoverflow.com/questions

how to Pass table name to PL SQL cursor dynamically?

妖精的绣舞 提交于 2019-12-13 10:52:57
问题 I have written one SQL Procedure where I have written one cursor and every time i have to pass table name to cursor query dynamically . create or replace PROCEDURE Add_DEN as v_TableName VARCHAR2(4000) := 'BO_USER_DATA'; cursor c_DEN is select * from BO_USER_DATA; // Want to pass dynamically ,now hardcoded r_DEN c_DEN%ROWTYPE; fetch c_DEN into r_DEN; v_Name := r_DEN."Name"; Can i write something like this cursor c_DEN is "select * from " || v_TableName; Any Help ? 回答1: here an example: