oracle11g

Inserting arabic characters in oracle 11g

怎甘沉沦 提交于 2019-12-13 15:53:37
问题 I am trying to insert Arabic characters in Oracle 11g, however the data is being inserted as question marks. I searched around and it seems i have to change the character encoding... But i am not sure how, and whether will it affect my database. Any help please ? UPDATE LAM_INVESTMENT SET INVESTMENT='ل' WHERE KEY=11; I tried updating from within SQL developer, also same outcome. 回答1: First of all check if your database is capable to store Arabic characters by SELECT * from NLS_DATABASE

C#/ODP.NET: large IN clause workaround

雨燕双飞 提交于 2019-12-13 14:41:25
问题 We have a C# component that handles attaching arbitrary-sized element lists into IN clauses for semi-arbitrary SQL SELECT queries. Essentially this boils down to receiving something like: SELECT COUNT(*) FROM a WHERE b IN (...) ...where the "..." is the only portion of the query the component is allowed to modify. Currently the component will insert a comma-separated set of named bind parameters, then attach the corresponding IDbDataParameter objects to the command and execute; the component

JDBC Thin connection string in Oracle uses both colon and forward slash

久未见 提交于 2019-12-13 14:10:05
问题 I wanted to know can we use both colon and forward slash with SID in making the connection URL in Oracle? e.g. jdbc:oracle:thin:@<host>:1521:<SID> jdbc:oracle:thin:@<host>:1521/<SID> Will these two are same and will work? I am building an application which will work with both Oracle RAC and non RAC environments and RAC environments supports SERVICE NAME with forward slash so wanted to check will non RAC environment support forward slash . For RAC environment URL is like this jdbc:oracle:thin:

How to get all levels data using single SQL query for bill of material

混江龙づ霸主 提交于 2019-12-13 12:53:31
问题 I have a lot of bill of material Items and it contains their raw material and semi-finished goods. The semi-finished goods have their own bill of material with raw material and further semi-finished goods and so on. I want to create a SQL query by which I want to get the details of the bill of material up to the last level. I will put a WHERE clause for the parent bill of material and should get the details up to the last level. It is not limited to 7 levels, some items may even goto 10 or 15

CLOB vs. VARCHAR2 and are there other alternatives?

北城余情 提交于 2019-12-13 12:25:51
问题 I am using DevArt's dotConnect and Entity Developer for my application. I've created the tables using the Entity-First feature. I notice that many of the column types are set to CLOB. I only have experience with MySQL and Microsoft SQL server, so I am not sure about using CLOB for the application. I did some reading, and found out that CLOB are for large chunk of data. The questions are: Is using CLOB for most fields, such as the user's gender (which should be a varchar (1) ) or the full name

How to display employee status day wise in a month

醉酒当歌 提交于 2019-12-13 09:55:25
问题 Below is my table structure and data. EMPLID EMPL_RCD EFFDT Eff_SEQ HR_STATUS PER_ORG 722243 0 21-Nov-18 0 A CWR 722243 0 15-May-19 0 A CWR 722243 0 20-May-19 0 I CWR 722243 1 20-May-19 0 A EMP 120707 1 14-May-19 0 A EMP 120707 0 29-May-19 0 I EMP 120707 1 29-May-19 0 I EMP 120707 2 29-May-19 0 A CWR when I pass month start date and end date in my query('01-MAY-2019' AND '31-MAY-2019') the query should display the data like below for EMPLID 722243 and 120707. EMPLID Date PER_ORG HR_STATUS ---

How can I delete a particular row from the table in a SQLquery

老子叫甜甜 提交于 2019-12-13 09:54:39
问题 How can I delete a particular row from the table in a SQLquery . I used primary key and Foreign key in this table. I am using Oracle 11G . 回答1: its very simple, may be you need some reference: http://psoug.org/reference/delete.html DELETE FROM table_name WHERE columnname= 'value'; 回答2: you asking to delete column Right? update employee set city_name = '' where empid = '12' Try this... This will make the column to NULL 回答3: Consider this example You are having a table named cars columns are

Multiple rows values into a single row

徘徊边缘 提交于 2019-12-13 09:37:56
问题 I have a requirement in oracle SQL where the multiple rows are to be converted into single row. Here is the example : Empid Ele_name Inp_name Inp_Value EntryId Start_date End Date 123 LW MA 1637 100000104856397 06-Nov-17 31-Dec-12 123 LW CA Y 100000104856397 06-Nov-17 31-Dec-12 143 LW MA 1637 100000104856504 06-Nov-17 31-Dec-12 143 LW CA Y 100000104856504 06-Nov-17 31-Dec-12 144 MTS AA 1000 300002685277016 12-Dec-17 31-Dec-12 144 MTS CA Y 300002685277016 12-Dec-17 31-Dec-12 144 LW CA Y

Need help to store value from three column

空扰寡人 提交于 2019-12-13 09:15:53
问题 SELECT DISTINCT clt.id, clt.client_p_email, clt.client_s_email, cus.customer_mail from client clt, customers cus where clt.id=cus.id --My Record is comming bellow ID client_p_email client_s_email customer_mail ----- ---------------------------- ---------------------------- --------------------------- 703 test01@aol.com prod01@gamil.com dev01@yahoo.com. 623 ra.ben@yahoo.com ra.ben@yahoo.com ea.bowens@gmail.com 965 eighteenman@aol.com eighteenman@aol.com eighteenman@aol.com 270 aunkurr1@icloud

SQL min values from two columns across two tables against ID

≡放荡痞女 提交于 2019-12-13 08:59:48
问题 I have below mentioned data. I am looking to get min of Start message and corresponding min of success message. If there is no start or success message present then it should show null. Start Message Table: ID1 Timestamp_start_msg_recieved date jobid message time in seconds 1234 5/14/2014 10:02:29 5/14/2014 abc start 262 1234 5/14/2014 10:02:31 5/14/2014 abc start 264 1234 5/14/2014 10:02:45 5/14/2014 abc start 278 1234 5/14/2014 10:02:50 5/14/2014 abc start 285 1234 5/14/2014 10:09:04 5/14