How to insert the value of the type in a value of type varchar date
Oracle forms 6iHai All
There are two tables T1, T2
T1 has these code varchar fields, the time varchar, date
T2 has these intimate date fields, outtime date intrinsically date, date of introut
I tried to change the time of Ie respondent T1 to T2
Update T2 intimate value = to_date(bartime|| bardate, «hh24mi maman-dd-yyyy»)...
It run but very well, but I got an error Ora-01861
Concerning
Srikkanth.M
Update t2 set outtime = to_date (r1.bartime | hh24mi R1.bardate,'dd-MOM-yyyy "") that I wrote like this and it runs and I got an error 01861
One of your error is to set month format his KILLS not MOM
I guess bardate has the format DD-MON-RRRR then this request won't work
update t2
set outtime = to_date(r1.bardate||' '||r1.bartime, 'DD-MON-RRRR HH24MI')
where......
---------------------
Take this into account in TO_DATE you tell Oracle that is my String don't String not really but it's date so for this, it must be said that your string contains this format date
To_date (Mystring, DateFormat);
for example
String is ' 2009/Jan/01 20:00 ' To_date would be like to_date (' 01/Jan/2009 20:00 ',' RRRR/MON/DD HH24 ')
It may be useful
If the answers are useful or correct please mark
Baig,
http://baigsorcl.blogspot.com
Published by: bamba on March 12, 2010 16:59
Tags: Oracle Development
Similar Questions
-
Oracle Nashorn - how to change the type of data/size of the column?
Hello!
Can someone give an example of how to do to change a column datatype/size with Oracle Nashorn?
The way I did (with Mozilla Rhino) does more work:
type = model.getDesign () .getLogicalDataTypeSet () .getLogTypeByName ("VARCHAR");
column.setLogicalDataType ();
Thank you!
Emiliano.
I think you need to call setLogicalDatatype (with a small t) rather than setLogicalDataType.
David
-
How to compare the type of data returned block Varchar2 PL/SQL
Hello
I'm new to the PL/SQL PROGRAMMIN, only to learn the basics of using if else block.
Here I have a query, please help
We compare a varchar2 data type using cant =. (For example, if the return value is equal to the name then alors that otherwise do something else)
declare
V_Key VARCHAR2 (15);
V_Value VARCHAR2 (15);
BEGIN
SELECT try.key FROM V_Key TO TRY WHERE value = "Value1";
IF(V_Value='Key1') THEN
dbms_output.put_line (' value is ');
on the other
dbms_output.put_line ('the value is two');
END IF;
END;
It's my program example, the returned value is here two (the execution of another condition) even if Key1 is returned.
Please advise, thank you in advnace.Dear user!
That's only a guess, but I think that it is a problem of casessensitivity. If your query returns 'key1' or 'KEY1' and not 'Key1 '? Due to the fact that Oracle is casesensitive these three values are not equal. To solve your problem, you can use the LOWER-SQL function like this:
DECLARE V_Key VARCHAR2(15); V_Value VARCHAR2(15); BEGIN SELECT try.key INTO V_Key FROM TRY WHERE value = 'Value1'; IF(LOWER(V_Key)='key1') THEN DBMS_OUTPUT.PUT_LINE('the value is One'); ELSE DBMS_OUTPUT.PUT_LINE('the value is Two'); END IF; END ; /
I hope this will help you along.
Yours sincerely
Florian W.
Published by: Florian W. the 21.09.2010 08:15
-
How to insert the value of a LONG data type?
Hi all
Developers what to change the type of data in the PRODUCTS table.
PRODUCT
======
ID number (10) not null,
NAME varchar2 (50) not null,
DESCR varchar2 (250) not null
They want the DESCR to change datataype at LENGTH
So I got back it up first:
create the table product_bak in select * from product;
remove the product;
change the product table change (descr, null);
Edit the product table change (long descr);
Insert into select product * from product_bak;
ORA - 997 - illegal use of LONG data type
How can I recover my data?
Thank you very much.Use TO_LOB to convert long on the CLOB type, then use TO_CHAR to convert CLOB VARCHAR2.
-
How to use the Type of Oracle Table values in the Select statement.
Hello
I get the initial set of values in the Table of Type Records of the Oracle and want to use the list of values in the Select statement.
For example, try something like the following:
TYPE t_record () IS RENDERING
ID TABLEA.ID%type,
NO TABLEA.NO%type
);
v_record t_record;
T_table TYPE IS the v_record TABLE % TYPE;
v_table t_table;
-Code to fill the values of v_table here.
SELECT ID, NO, COLLECT in BULK IN < some other table variabes here > FROM TABLEA
WHERE ID IN (i) v_table USER.USER;
I want to know how to use the Type of Oracle Table values in the Select statement.Something like this:
create or replace type t_record as object ( id number, no number ) / CREATE or replace type t_table AS TABLE OF t_record; / set serveroutput on declare v_table t_table := t_table(); v_t1 t_table := t_table(); begin v_table.extend(1); v_table(1).ID := 1; v_table(1).No := 10; v_table.extend(1); v_table(2).ID := 2; v_table(2).ID := 20; SELEC t_record (ID,NO) BULK COLLECT INTO v_t1 from TableA FROM TABLEA WHERE ID IN (select t.ID from table(v_Table) t); for i in 1..v_t1.count loop dbms_output.put_line(v_t1(i).ID); dbms_output.put_line(v_t1(i).No); end loop; end; /
No test!
P;
Published by: bluefrog on March 5, 2010 17:08
-
How to insert the "html" text in the text block?
Hello everyone!
I have the question of the object. So, I want to insert the type html content in the block of text, something like this:
Header text in italic and bold styles
Some content in the normal template
I know I should use
TextFrame.Paragraphs.Add ('of content', null, null)
and
CharacterAttributes
but don't know exactly how to write it.
Please give me some examples?
Thank you.
need to make semi-auto, you start by creating two character styles in the user interface, we will call "bold" and "italic", then apply these styles to characters in the script
var idoc = app.activeDocument; var itext = idoc.textFrames[0]; var irangeItalics = itext.words[3]; var irangeBold = itext.words[5]; var boldstyle = idoc.characterStyles["bold"]; var italicstyle = idoc.characterStyles["italics"]; boldstyle.applyTo(irangeBold); italicstyle.applyTo(irangeItalics);
-
How to check the type of memory installed (ECC or not)?
all!
I have some servers Dell PowerEdge R420 and I want to upgrade memory, install more...
How to check the type of memory installed (ECC or not)?
Dmidecode output here:
Hello.
Unfortunately, we are not able to open the link you have provided. You can display information about your memory on the web iDRAC under hardware and memory interface. You see the type of error correction (ECC or Non ECC) within the information memory page. You can also view the same information on OpenManage Server Administrator and even make use of the memory part number to find out more information.
-
How to change the type of user account in the registry editor
Hello.
Can someone tell me how to change the type of user account in the registry editor
Thanks in advance... :-)
Kind regards
RambeauHello.
Can someone tell me how to change the type of user account in the registry editor
Thanks in advance... :-)
Kind regards
RambeauYou can not. You need to do this via the control panel / accounts of users or via the command prompt. In both cases, you need to be logged in as an administrator account.
-
[JS] How to change the type of stroke?
app.selection[0].strokeWeight = 3; // app.selection[0] = [object TextFrame] app.selection[0].strokeCornerAdjustment = StrokeCornerAdjustment.DASHES;
Hello.
I tried this code, but error.
error message: property is not applicable to the current state.
How to change the type of dotted line?
You must use the strokeType method, try this
App.Selection [0] .strokeWeight = 3;
App.Selection [0]. StrokeType = "dashes (3 and 2).
-
HOW to: Insert the symbol of the degree in text
An another "How To" question.
Running PE 13.1 on a Windows PC with WIN 7 64-bit.
How to insert the symbol of the degree in text - I would like to have something like "temperature + 2 < degree symbol > water C.
where < degree symbol > is the small circle (triggered).
I found how to insert copyright (Alt + 0169) & the Tilde (Alt + 126) helped by Wikipedia, but the Windos ciode for the degree symbol is not shown - just the
Unicode U + 2103 but Alt + 2103 just inserts a '7'.
HEM
HEM
If you have the copyright © symbol to work for you with Alt + 0169, I think Alt + 0176, you should get the degree symbol as in 32 °.
If please give it a try in the Titler, open Premiere Elements and let us know if it worked for you.
Thank you.
RTA
-
How do I reselect the type to change. I have a text template that I want to, but when I try to select it with the text tool always creates a new text layer. How to change the type of the layer in my registered design?
OK, Bob. This give a try.
First, open a new file and make sure the background is white, not on Transparent that I suspect you have currently defined.
Then, type your copy. Your layers panel will then look like the top of this picture...:
and when you drag the text on the image layer, it will look like the lower part of the sample above.
You can then position the text layer with the tool move
-
How to select the Type of industry 8.3 Professional P6
Hi all
According to the document to change the type of industry for 8.3 Professional P6, I had to go to P6, Application settings, general link.
But in the P6 Web client to administrator > Application Configuration > General there is no option is available for the type of industry.
Let me know, how to select the type of industry?
You can see the OPINION score "How to change the Type of industry P6 P6 PPM (Professional), P6 EPPM E8.2 and later versions (Doc ID 1386047.1)".
Also can you paste a screenshot here.
-
How to change the type of light?
Does anyone know how to change the type of light?
What happens is that I have a button I want to create a Point of light, but just create a spot light.
Does anyone know how to change it to create a point of light?
My code is:
Add a Point of Comp light active
addLightCtrl.onClick = function(){}
pointLight var = proj.layers.addLight ("Light," [960, 540]);
}
See the attribute of the lightType LightLayer object. Page 100 of the script AE CS6 guide.
pointLight = activeItem.layers.addLight ("Light," [960, 540]);
pointLight.lightType = LightType.POINT;
-
How display you the type of file in PS Elements 10?
How display you the type of file in PS 10 items in the organizer for each photo?
I know that you can right click and watch meta data.
In PSE 7 it was displayed under each photo.
Two things:
1. set the display option to display file names:
2. make sure your tiles are large enough to display the data:
Ken
-
Hi all
I've got procedure of inserting data in table1 value1 column.
My need is to determine the type of data entered by the user.
If the data type is not number user should error.
How can I make it?The easier and more reliable way would be to declare the formal parameter as a number, such as:
SQL> create procedure p (p_num in number) as 2 begin 3 null; 4 end; 5 / Procedure created. SQL> exec p('a'); BEGIN p('a'); END; * ERROR at line 1: ORA-06502: PL/SQL: numeric or value error: character to number conversion error ORA-06512: at line 1
If you cannot do this, or want to be more "user friendly", so the only alternative is to test and trigger an error like:
SQL> create procedure p (p_str in varchar2) is 2 l_num number; 3 begin 4 l_num := to_number(p_str); 5 exception 6 when value_error then 7 raise_application_error(-20001, 'I know I said it was a string, but I really want a number'); 8 end; 9 / Procedure created. SQL> exec p('a'); BEGIN p('a'); END; * ERROR at line 1: ORA-20001: I know I said it was a string, but I really want a number ORA-06512: at "OPS$ORACLE.P", line 7 ORA-06512: at line 1
John
-
In the attached VI why looping force the type of data while the other does not?
In the attached VI why looping force the type of data while the other does not?
I'm guessing that you have created the Enum on the front panel. If you right click and create an indicator, it corresponds to the type and be an enum. LabVIEW represents enums as U16, but because the types are not the same (for example, your enum has 3 values, but a U16's 65 536 values), LabVIEW automatically converts value (or converts) the smallest representation (enum) in the largest value (U16).
Maybe you are looking for
-
I did all the requirements but still not put pictures in my TABS
I have adjusted the cache, checked all the boxes and set up the tabs as described, but again, I don't see no pictures in TABS?Any thoughts, please?
-
Hello! I have a toshiba satellite 1110, the laptop pretended to be writing the CD but does not work. I can play cds and dvds without any problems however. Anyone know what could be the problem?
-
Satellite P850 138 - updated graphics card is possible?
My Toshiba Satellite P850 138 comes with an nvidia GT 630 M graphics card. I know to replace the graphics card (if it is even possible) is a long-term work... but can someone tell me if I CAN upgrade the graphics card and if yes, what options are ava
-
I have a 200 x, with as a hard drive 7BG. It is very quiet in the State, but I want to trade for a big drive. So my question is; is the factory installed lenovo hard drive it yourself it's very quiet or pampens sound laptop case? If it is that silenc
-
The problem began with a blue screen after the updated copy on the road on machine of internal to external hard drive... After the reboot, the screen went white and CAPS LOCK has 2 flashes Device: HP dv6 7309tx envy Current BIOS: 22/01/2013 F.24 / 18