How to convert a column from varchar2 into timestamp(3)
Hi all,
I have a date field column with varchar2 as datatype :
date
3/13/2011 10:22 AM
3/13/2011 10:22 AM
I tried this:
select to_timestamp(date,'HH24MI') from dual;Iam getting this error:
ORA-01858: a non-numeric character was found where a numeric was expected
I want to convert date column to timestamp(3) column
846773 wrote:
I want to convert date column to timestamp(3) columnTIMESTAMP is not time column. Look at it as a date with better precision - it supports franctional part of a second. Anyway, use:
select to_timestamp(date,'MM/DD/YYYY HH:MI AM') from dual;SY.
Similar Messages
-
How to convert a date from "yyMMddHHmmss" into "yyyy-MM-dd HH:mm:ss format
hi
please help i got the date "yyMMddHHmmss this format, how do i convert this into "yyyy-MM-dd HH:mm:ss" format using java code
please help me anybody having ideaYoungWinston wrote:
jverd wrote:
...you don't need to know anything about dates or calendars to do that transformation, other than the rules for converting a 2-digit year to a 4-digit one.
@OP: And for that, you have [SimpleDateFormat.set2DigitYearStart()|http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/text/SimpleDateFormat.html#set2DigitYearStart%28java.util.Date%29].
WinstonRight. But I was talking about the case where we just use string manipulation directly, and skip DateFormat altogether. In this case we just need and if check against the int value of the first two digits. -
How to insert select columns from one internal table to another
Hi,
How to insert select columns from one internal table to another based on condition as we do from a standart table to internal table.
regards,
SriramHi,
If your question is for copying data from 1 int table to other ;
we can use
APPEND LINES OF it_1 TO it_2.
or if they have different columns then:
loop at it_1 into wa_it1.
move wa_it1-data to wa_it2-d1.
apped wa_it2 to it_2.
clear wa_it2.
endloop.
thnxz -
How to convert Oracle reports previewer output into delimited file.
How to convert Oracle reports previewer output into delimited file if the report has more than 1000 pages.
I tried with previewer option File --> Generate to file --> Delimited file, but the report engine is crashing.Not generating .TXT file.
I observed that this option is not working for more than 400 pages.
I am using Oracle reports 6i version.
Plz suggest me to generate .TXT file from Report previewer.You can specify a delimiter (a character or string of characters) to separate the data (boilerplate or field objects) in your report output in either of the following ways:
On the command line using the DELIMITER keyword.
In the Delimited Output dialog box or DelimitedData Output dialog box (displayed with File > Generate to File > Delimited or File > Generate to File > DelimitedData) in Reports Builder.
for further information goto this link
http://download.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_concepts2.htm#sthref760 -
[Oracle 8i] How to convert a string (time stamp) into a date?
I'm having difficulty figuring out how to convert a time stamp string into a date (or possibly a number).
The time stamp is 20 positions, character (NOT NULL, CHAR(20))
in the format: YYYYMMDDHHMMSSUUUUUU
where Y = Year, M = Month, D = Day, M = Minutes, S = Seconds, and U = Microseconds
The reason I want to convert this is so that I can compare one time stamp to another (i.e. I want to be able to find the MIN(timestamp), MAX(timestamp), and do inequality comparisons).
Is this at all possible?
Thanks in advance for help on this!Hi,
As Damorgan said, if all you want to do is find which is the earliest or latest, then you can just compare the strings: they happen to be in a format where that works.
If you need to do other things, such as compare them to today's date, or see the difference between two of your rows in days, then you have to convert them to DATEs. (There's no point in converting them to NUMBERs).
A new data type, TIMESTAMP, which handles fractions of a second, was introduced in Oracle 9.
Since you're using Oracle 8 (according to your subject line), you either have to
(1) ignore the microseconds, or
(2) use a separate NUMBER column for the microseconds.
Either way, use TO_DATE to convert the first 14 characters to a DATE:
TO_DATE ( SUBSTR (txt, 1, 14)
, 'YYYYMMDDHH24MISS'
)where txt is your CHAR column.
To convert the microseconds to a number (between 0 and 999999):
TO_NUMBER (SUBSTR (txt, 15)) -
How do I install CS5 from CDs into my new MacBook Pro?
How do I install CS5 from CDs into my new MacBook Pro?
Buy a cheap external DVD drive, connect via USB and then install
Download CS5 Trial version from http://prodesigntools.com/all-adobe-cs5-direct-download-links.html then activate with your CS5 serial number to convert to a permanent version -
Does anyone know how to convert the output from the standard report to xml?
Does anyone know how to convert the output from the standard SAP report to xml?
since it a standard report which you cannot modify you can only do the following.
submit report exporting list to memory
then
list from memory and then
use the returned itab along with CALL TRNSFORMATION key word to convert to xml.
but this only going to place the whole list content (including data and formating lines,etc) into a xml element and not the actual data alone in the list . -
How to delete a column from the table control in module pool?
Hi,
can any one please tell How to delete a column from the table control in module pool?
thanks in advance
warm regards
HareeshKumar Nhi hareesh,
I think it is better to hide it.
How to hide: You can check this link
Dynamic Hide column in table control -
How to load the data from informatica into bw & how to report the data
Hi friends,
how to load the data from informatica into bw & how to report the data
using cognos.(i.e how to access the data in sap bw using cognos 8 BI suite).
Thanks,
madhu.Inorder to report BW data into Cognos you can extract data from using Open Hub to the DB table from which Cognos reads.
For BW informatic integration refer following docs:
http://www.aman.co.il/aman/pfd/DataInteg_BR.q103cd.pdf.pdf
http://h71028.www7.hp.com/enterprise/cache/3889-0-0-225-121.html
http://devnet.informatica.com/learning/ePresentations.asp
http://72.14.203.104/search?q=cache:C741L86Q19oJ:devnet.informatica.com/showcase/resources/Essbase_DataSheet.pdfinformaticapowerconnect(BI)&hl=en&gl=in&ct=clnk&cd=3
http://www.informatica.com/customers/utilities_energy/fpl_group.htm
http://www.informatica.com/solutions/resource_center/technote_sapbw_65241004.pdf#search=%22Informatica%20to%20Bw%22 -
How do I save documents from iCloud into pages on my ipad?
HOw do I save documents from iCloud into pages using an ipad?
Where are you expecting to see "iCloud document?" Pages stores copies of your documents in iCloud but the documents appear in the Pages app. When you edit the document changes are automatically saved to iCloud. You do not go to iCloud to look for documents to open or copy.
-
How can I select columns from a table EMP, using Select statement?.
Hi Friends,
How can I select columns from a table EMP?.
I want to select columns of EMP table, using select statement.
Please reply me urgently.
ShahzadSomething like this:
scott@DBA> select empno,ename,job from emp;
EMPNO ENAME JOB
7369 SMITH CLERK
7499 ALLEN SALESMAN
7521 WARD SALESMAN
7566 JONES MANAGER
7654 MARTIN SALESMAN
7698 BLAKE MANAGER
7782 CLARK MANAGER
7788 SCOTT ANALYST
7839 KING PRESIDENT
7844 TURNER SALESMAN
7876 ADAMS CLERK
7900 JAMES CLERK
7902 FORD ANALYST
7934 MILLER CLERK
14 rows selected.Check the documentation:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#sthref9697
Message was edited by:
Delfino Nunez -
How to copy one column BLOB value into another column of another database.
How to copy one column BLOB value into another column of another database.
BLOB value contains word document.
I thought of copy the BLOB value into a text file and then update the new column value by the same text in textfile. Will this work?
Is there any other better way to do this?You're welcome
BLOB fields contains binary data. I don't think you can do this
Also if I view the BLOB as text. Can I copy it and insert into the new database.
I think your options are as I said. Datapump or CTAS
Best Regards -
How to convert a string from upper case to lower case in FOX formula
Hi Experts,
How to convert a string from upper case to lower case in FOX formula?
Thanks,
Cheers!!!
PANKAJThe last result.append( c ) should be:
result.append( Character.toLowerCase(c) ); -
How to convert a string from lower case to upper case withour using transla
Hi all,
how to convert a string from lower case to upper case withour using translate,
Thanks in Advance,
ReddyRefer to this related thread
Re: hi guys this very urgent please help -
How to separate perticular column from multidimensionl array
dear all,
i am just reading CAN bus message, problem is that it is accomodated in a 11X7 array which includes frame time stamp, ID, byte length etc but i am interested in CAN data. can anybody tell me how to separate that column from all. i want to read a column of 5 with all rows. how it is possible.Hello Sanjay,
If your requirement is simply to obtain a single column from a 11x7 array, I would suggest you should do the following:
1. Use Transpose 2D array to obtain a transposed array
2. Use Index Array function to retrieve invidual row (which is actually the column of non-transposed array).
Use index value of 4 (zero indexed), and the output would be a 1D array containing all elements of column 4 (zero indexed) of the original array.
I hope this helps.
Regards,
Navjodh
Maybe you are looking for
-
I have all of these Firefox listing in the downloads and also other multiple downloads and don't know how to get rid of them or even if they are all needed. Would appreciate any assistance in this matter. Thank you, Jeanie
-
Using JDBC with Visual Studio J++ doesn't work.
G'day all, I am trying to create an applet that extracts data from an Access 2000 database, which is then displayed to the applet. Currently I am using Visual Studio J++ 6.0 as my development platform. I am having trouble trying to connect to my Acce
-
Acrobat PDFMaker toolbar button disparity
I am printing to PDF an Outlook email message using the Acrobat PDFMaker toolbar button. The document generates but is displaying the date of the Outlook pst file instead of the date the email was created. Conversely, if I attempt to print the same
-
LSMW - 1 to many mapping ?
I want to create an LSMW mapping where my data file will contain a legacy equipment # that could create 1-many equipments in SAP. how can I do a 1 - many mapping? Whre do I handle that in LSMW workbench?
-
Website not displaying centrered?
I am developing a new site, but my site doesn't centre in the browser? I have tried a few things, probably quite simple but I can't see it? Any help would be apprciated. Thanks Batch108