Convert Varchar to Date of the
HelloIm trying to convert varchar to date.
So I used To_date (cilumn, 'DD-MM-YYYY'), since I have to order the set in descending order, I used the same function of conversion with order by clause.
The problem is... put it is not ordered.
< sql >
Select date_created
Of
(
Select distinct
to_date(created_date,'DD-mm-YYYY') as date_created
of schedule_backup
)
order by desc date_created
/
< sql >
out put is
=================
DATE_CREA
---------
26 NOVEMBER 09
23 NOVEMBER 09
19 NOVEMBER 09
16 NOVEMBER 09
11 NOVEMBER 09
4 NOVEMBER 09
30 OCTOBER 09
11-SEP-09
4 MARCH 10
MARCH 1, 10
FEBRUARY 25, 10
DATE_CREA
---------
FEBRUARY 22, 10
17 FEBRUARY 10
FEBRUARY 15, 10
11 FEBRUARY 10
FEBRUARY 9, 10
FEBRUARY 3, 10
27 JANUARY 10
20 JANUARY 10
JANUARY 15, 10
JANUARY 4, 10
Thank you
REDA
So it's a problem with the data itself
Check below
SQL>SELECT TO_CHAR(a,'DD-MON-YYYY')
2 ,TO_CHAR(b,'DD-MON-YYYY')
3 FROM (
4 SELECT TO_DATE('03-FEB-10','DD-MON-YYYY') a
5 ,TO_DATE('03-FEB-2010','DD-MON-YYYY') b
6 FROM DUAL
7 );
TO_CHAR(A,' TO_CHAR(B,'
----------- -----------
03-FEB-0010 03-FEB-2010
Elapsed: 00:00:00.04
SQL>
Data are not in a consistent format DD-MON-YYYY or DD-MON-AA. It is a format of mix that impact of output as shown above
Concerning
Arun
Tags: Database
Similar Questions
-
How to convert varchar to date datatype all insert or update in the table
Hai All
I need to convert to varchar type to date.
I have two Tables T1, T2
Structure of T1
Code varchar
Time varchar
Date varchar
Structure of T2
Var EmpName
Empcode var
Date of the respondent
Outtime date
Intrinsically date
Date of Introut
Att_date
Now I need to spend the time form T1 to T2 respondent, outtime, intrinsically, introut under certain conditions
So now I need to convert Varchar to Date so that the insert or update
I tried something
Insert into T1 (code, respondent, att_date) values
(To_date(Date|| dele de code temps, «hh24mi de mon-dd-yyyy»), att_date);
OR update while
Setting a day set Outtime T2 = To_date(Date||) Time, 'hh24mi mon-dd-yyyy') where...
I got an error Ora-01861
Concerning
Srikkanth.MYou did not show an example of your date or time values, control may be necessary to add a space between them, like
To_date(Date || ' ' || time,'dd-mon-yyyy hh24mi')
-
convert decimal into DATE of the
Hi people,
can any body tell me how do to convert the number into date marker
I / p... 990926 (decimal)... o/p should be 26-sep-1999 (date)
It is decimal conversion date
Thanks in advance
REDA
Published by: user11410176 on January 8, 2010 06:55SQL> alter session set nls_date_format = 'dd-mon-yyyy'; Session altered. SQL> select to_date(990926, 'rrmmdd') from dual; TO_DATE(990 ----------- 26-sep-1999 SQL>
-
How to convert varchar to DateTime?
Hi all
I have a field - "final payment".
Data - type Varchar.
Last completion date must be in the date format. So I want to convert Varchar to Date.
How can I convert? Can someone please help me solve this problem.
Hi Nicolas,.
Gayathri Venugopal wrote:
I have a table - order and I have a field "
Latest_Completion_Date
" which is in the format Varchar - ' 20150804'.select Latest_Completion_Date from order
output- 20150804
I want to convert Latest_Completion_Date - '20150804' in Date format - 15-SEP-07 ".
How to convert it?
The column ORDER. LATEST_COMPLETION_DATE with the VARCHAR2 data type?
How are "Last date" element filling in the form?
You can use to_date and to_char in combination to get the required format:
select to_char(to_date(latest_completion_date,'YYYYMMDD'),'DD-MON-RR') latest_completion_date from order
Kind regards
Kiran
-
convert the data in the table to mix cases
Hi all
I have a table that contains data.
This table has columns, id, and description.
I want to update my table to convert data to toss the case.
From now on, all my data in the table are tiny.
What I mean when mixed is the first letter of each word is capitalized and the rest lowercase.
is there a function I can use?
example:
Thank youAmended/Resentence, Type Unknown
You can use the INITCAP function.
update table set description = INITCAP(description);
Example:
create table test (description varchar(50)); Table created insert into test values ('amended/resentence, type unknown'); 1 row inserted select * from test; DESCRIPTION -------------------------------------------------- amended/resentence, type unknown update test set description = initcap(description); 1 row updated select * from test; DESCRIPTION -------------------------------------------------- Amended/Resentence, Type Unknown
-
convert date of the Hijra dateto Georgian
I have following the Date of the Hijra in Varchar field data. I want this covert Georgian format. How is it possible.
13/01/1405
04/03/1395
09/06/1426
07/11/1428
16/06/1400
15/07/1398
03/02/1396
28/11/1406
Thank you
FassiIf it were me, I would concern myself only with the conversion of the date to a date data type string, then the output that can be represented in any format of calendar is desired at a later point in time. As such:
to_date(date_string,'mm/dd/rrrr','nls_calendar=''English Hijrah''')
should be enough to convert the Hijri date string to the internal date data type. Date settings typical NLS are to a Gregorian calendar, so once converted to the interal date data type real displaying the date will also match the NLS parameters that would be Gregorian unless it is changed for a specific reason.
-
How do you write the command for the conversion of FAT32 disk to ntfs without losing data to an external drive in Windows 7 and how you can convert the local drive too?
How do you write the command for the conversion of FAT32 disk to ntfs without losing data to an external drive in Windows 7 and how you can convert the local drive too?
Convert a drive to NTFS does not fit.
http://Windows.Microsoft.com/en-us/Windows-Vista/convert-a-hard-disk-or-partition-to-NTFS-format
(Vista/Windows 7 - it doesn't matter in this case).
However, pay attention to this:
"Although the risk of corruption or loss of data during a conversion are minimal, you must back up all data on the partition before you begin."
Because something can and probably will happen. -
I tried to download a pdf and convert them into excel, but the data in excellent is always to the image format. How can I get the pdf data into the columns and rows so that I can do the calculations?
If you start the https://forums.adobe.com/welcome Forums Index
You will be able to select a forum for the specific Adobe products you use
Click on the symbol "arrow down" on the right (where it is said to see all our products and Services) to open the drop-down list and scroll
-
I followed the pretty good learncfinaweek and can see no error in my code. Here is the error, that should solve and the page with the code. Any help is appreciated. This should be quite simply like this: < cfset blogPost.dateposted = importData ["posted Date"] / >, which allows the column in excel with a space between words.
Good: dateposted - the coldfusion.sql.QueryColumn class value cannot be converted to a date.
Root cause: org.hibernate.HibernateException: property: dateposted - the coldfusion.sql.QueryColumn class value cannot be converted to a date
"< cfimport taglib ="... /... "/ customTags" prefix = "ct" / >
< ct:securityCheck redirectPage = "#cgi.script_name #" / >
< name = "cfparam form.submitted" default = "0" / > "
"< name =" cfparam form.importFile"default =" "/ >
< cfif form.submitted >
<! - Download file - >
< cffile action = "upload" destination = "#getTempDirectory ()" # "filefield ="importFile"nameconflict ="makeunique"/ >"
<!--> reading spreadsheet
"< cfspreadsheet action = 'read' src="#cffile.serverDirectory#/#cffile.serverfile# ' query = headerrow "importData" = "1" excludeheaderrow = "true" / >
<!--> Import data
< cfloop query = "importData" >
< cfset blogPost = entityNew ('blogPost') / >
< cfset blogPost.title = importData.title / >
< cfset blogPost.summary = importData.summary / >
< cfset blogPost.body = importData.body / >
< cfset blogPost.dateposted = importData ["posted Date"] / >
< cfset EntitySave (blogPost) / >
< / cfloop >
< cfset ormFlush() / >
< cflocation url = "listblogpost.cfm? message = #urlencodedformat ('Blog Posts Imported Successfully')" # "addtoken ="false"/ >"
< / cfif >
< cfoutput >
< section ct:layout = "Summary" >
< section = 'blog' active 'post' = ct:navigation / >
< div class = "span10" >
The Blog posts to download < h2 > < / h2 >
< form class = "form-horizontal" action = "" #cgi.script_name # "method ="post"enctype =" multipart/form-data">"
< div class = "control group" >
< class label = 'label control' for 'importFile' = > import file < / label >
< div class = "orders" >
< input type = "file" id = "importFile" name = "importFile" value = "#form.importFile #" >
< / div >
< / div >
< div class = "control group" >
< div class = "orders" >
< button type = 'submit' class = "btn, btn-primary" > download < / button >
< / div >
< / div >
< input type = "hidden" name = "subject" value = "1" / >
< / make >
< / div >
< / ct:layout >
< / cfoutput >
DavidSCarlisle55 wrote:
I changed the date to 'YYYY-MM-DD' in the xls file by changing to the UK format within excel.
It is still giving an error. ?
Odd. Then there can be only one solution to the riddle: what you read is a column name, and not the date value stored in the column.
See what happens when you replace this line by
or, perhaps better,.
-
I am new to Adobe, I created an Excel file that I convert the file to PDF, but the converted PDF file shows all the data, missing on the right side of the page
Hi Tony,.
In Excel, click on the Acrobat toolbar, and then click Preferences.
Now select the option 'Fit the worksheet to a single page' and click ok
Now, try to convert and check.
Kind regards
Rave
-
I use an informix database that accepts the value of date as a DATE format...
the other part of my app takes date from the field in the format DD/MM/YYYY... so I have to convert my java.sql.date in marker AAAA/MM/JJ JJ/MM/AAAA marker of the same type before inserting into db...
but by using the parse method in SimpleDateFormat class can get the result format java.util.date...
and also using method format may result in the conversion of strings...public class Dbop { static final java.text.SimpleDateFormat fmt = new java.text.SimpleDateFormat("dd/MM/yyyy"); public static void main(String[] args) throws Exception { java.util.Date ud = fmt.parse("31/12/2010"); java.sql.Date sd = new java.sql.Date(ud.getTime()); String formattedSqlDate = fmt.format(sd); System.out.println("result:"+formattedSqlDate); } }
-
Convert data in hierarchal of hierarchical data for the creation of the tree
Hi guys,.
I tried to figure this out for about two days together now and I'm still stuck and I see no possible solution that does not involve a new creation of the table.
I want to create a tree to navigate through projects and tasks, I use the demo "Task Manager" app, which I customized it a bit to fit my needs.
Basically, I can't create the tree because the relationship between projects and tasks is not a hierarchical relationship, it's a relationship 1: n like this:
__Projects__
ID (PK)
PROJECT NAME
___Tasks___
ID (PK)
Project (done FK reference Projects.ID)
So what I have to do is to "force" this relationship 1: n with a hierarchical relationship by creating a query (view) that links the two tables into one and have 2 columns, I can use as ID and PARENT_ID for the creation of the tree.
This is the data model:
CREATE TABLE 'EBA_TASK_PROJECTS '.
(NUMBER OF 'ID',
'PROJECT_NAME' VARCHAR2 (255),
"CREATED_ON" DATE NOT NULL ACTIVATE.
'CREATED_BY' VARCHAR2 (255) NULL NOT ACTIVATE.
DATE OF THE "UPDATED_ON"
"UPDATED_BY' VARCHAR2 (255),
'FLEX_01' VARCHAR2 (4000).
'FLEX_02' VARCHAR2 (4000).
'FLEX_03' VARCHAR2 (4000).
'FLEX_04' VARCHAR2 (4000).
'FLEX_05' VARCHAR2 (4000).
NUMBER OF "PARENT_ID"
VARCHAR2 (1) 'IS_ACTIVE ',.
VARCHAR2 (4000) "DESCRIPTION."
CONSTRAINT CHECK of 'EBA_TASK_PROJECTS_ACTIVE_CC' (in is_active ('Y', 'n')) ENABLE,.
ENABLE 'EBA_TASK_PROJECTS_PK' CONSTRAINT PRIMARY KEY ('ID')
) ; ALTER TABLE 'EBA_TASK_PROJECTS' ADD 'EBA_TASK_PROJECTS_FK' OF CONSTRAINT FOREIGN KEY ('PARENT_ID')
REFERENCES 'EBA_TASK_PROJECTS' ('ID') ON DELETE CASCADE ACTIVE;
CREATE TABLE 'EBA_TASK_TASKS '.
(SELECT 'ID' NUMBER NOT NULL,)
ACTIVATE THE "PROJECT" NUMBER NOT NULL,
ACTIVATE THE "TASK_PRIORITY" VARCHAR2 (400) NOT NULL,
ACTIVATE THE "TASK_DIFFICULTY" VARCHAR2 (400) NOT NULL,
ACTIVATE THE "TASKNAME" VARCHAR2 (4000) NOT NULL,
VARCHAR2 (4000) "TASK_DETAILS."
"CREATED_ON" DATE NOT NULL ACTIVATE.
DATE 'DONE ',.
ACTIVATE THE 'CREATED_BY' VARCHAR2 (400) NOT NULL,
'STATUS' VARCHAR2 (4000).
DATE OF THE "UPDATED_ON"
"ON THE ROAD" DATE.
NUMBER OF "TASK_PREDEFINED_ID."
"UPDATED_BY' VARCHAR2 (255),
ACTIVATE THE "USER_NAME" VARCHAR2 (255) NOT NULL,
'FLEX_01' VARCHAR2 (4000).
'FLEX_02' VARCHAR2 (4000).
'FLEX_03' VARCHAR2 (4000).
'FLEX_04' VARCHAR2 (4000).
'FLEX_05' VARCHAR2 (4000).
NUMBER OF "PERCENTAGE."
ENABLE 'EBA_TASK_TASKS_PK' CONSTRAINT PRIMARY KEY ('ID')
) ; ALTER TABLE 'EBA_TASK_TASKS' ADD 'EBA_TASK_TASKS_PROJECTS_FK' OF CONSTRAINT FOREIGN KEY ('PROJECT')
REFERENCES 'EBA_TASK_PROJECTS' ('ID') ON DELETE CASCADE ACTIVE;
I use APEX4.0
It's good enough that this guy, hope you can help me with this. I'm really stuck on this and I'm about to give up.Hello
So what I have to do is to "force" this relationship 1: n with a hierarchical relationship by creating a query (view) that links the two tables into one and have 2 columns, I can use as ID and PARENT_ID for the creation of the tree.
I'd say you need a UNION rather than a JOIN.
Something like:WITH project_task_view AS ( SELECT 'P'||to_char(id) as id , null as parent_id , project_name as node_name FROM eba_task_projects UNION ALL SELECT 'T'||to_char(id) , 'P'||to_char(project_id) , task_name FROM eba_task_tasks ) SELECT id, parent_id, node_name, level FROM project_task_view START WITH parent_id IS NULL CONNECT BY PRIOR id = parent_id ;
-
Hello
I would like to convert varchar value stored in a table in order to view a converted date...
as below
the value in the column has values such as "January 2013', ' March 2014'... etc.
I want to display in the form of "Jan 2013', ' March 2014'... i.e. the short form..."
I tried to use the to_date and to_char... but not of much use...
can someone please help...
Thanks in advance...
RK
SQL >-generating sample data:
SQL > with t as (select 'January 2013 "str of union double
2 Select "March 2014' double '.
3 )
4 --
5 - the actual query:
6 --
7. Select str
8, to_char (to_date (str, ' month yyyy ',' nls_date_language = american'), "My yyyy")
9 t
10.
TO_CHAR (TO_DATE (S STR
------------ -----------------
January 2013 Jan 2013
March 2014 2014 Mar
2 selected lines.
-
How to convert sql server procedures in the format of oracle
Hello
I need help, I got some procedures that is written in the format MS Sql, I need to convert those to the format of the oracle, and I don't know how to do. Could someone help me?
IN SQL server code format is:
/ * Object: StoredProcedure [dbo]. [sp_rpt_get_job_log_on_demand] Script Date: 20/12/2013-09:07:26 * /.
SET ANSI_NULLS
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo]. [sp_rpt_get_job_log_on_demand]
(
@JOB_ID INT
@REPORT_DATE AS DATETIME
, @PERIOD VARCHAR (100)
)
AS
BEGIN
SET @REPORT_DATE = CONVERT (DATETIME, CONVERT (DATE, @REPORT_DATE))
DECLARE @MONTH INT = (YEAR (@REPORT_DATE) * 100) + MONTH (@REPORT_DATE)
, @TODAY = INT ((((@REPORT_DATE) YEAR * 100) + MONTH (@REPORT_DATE)) * 100) + DAY (@REPORT_DATE)
@YEAR INT = YEAR (@REPORT_DATE)
SELECT J.JOB_ID
J.JOB_NAME
CASE
WHEN F.FREQUENCY_SUBTYPE IS NULL, F.FREQUENCY_TYPE
OF OTHER F.FREQUENCY_TYPE + '-' + F.FREQUENCY_SUBTYPE
END AS FREQUENCY_TYPE
L.TRANSACTION_DATE
L.PROCESS_DATE
START_TIME
END_TIME
DATEDIFF(MINUTE,START_TIME,END_TIME) AS TIME_TAKEN
L.RECORD_COUNT
ISNULL(L.EXECUTION_STATUS, 'NOT STARTED') AS EXECUTION_STATUS
L.ERROR AS ERROR_DESC
P.PRIORITY_NUMBER
P.COLOR_CODE
OF dbo.JOBS J AS
INNER JOIN dbo. ACE OF FREQUENCY F
ON J.FREQUENCY_ID = F.FREQUENCY_ID
INNER JOIN dbo. JOB_PRIORITY AS P
ON J.PRIORITY_ID = P.PRIORITY_ID
LEFT JOIN dbo. TBK_POS_FACT_LOADING_SUMMARY ACE L
ON J.JOB_ID = L.JOB_ID
AND)
(@PERIOD = 'TODAY' AND CONVERT (DATETIME, CONVERT (DATE, L.START_TIME)) = @REPORT_DATE) OR
(@PERIOD = 'MONTHS' AND ((START_TIME) YEAR * 100) + MONTH (START_TIME) = @MONTH) OR
(@PERIOD = 'YEAR' AND YEAR (START_TIME) = @YEAR)
)
AND CONVERT (DATETIME, CONVERT (DATE, L.START_TIME)) < = @REPORT_DATE
WHERE F.FREQUENCY_TYPE <>'NONE'
AND J.JOB_ID = @JOB_ID
UNION ALL
SELECT J.JOB_ID
J.JOB_NAME
CASE
WHEN F.FREQUENCY_SUBTYPE IS NULL, F.FREQUENCY_TYPE
OF OTHER F.FREQUENCY_TYPE + '-' + F.FREQUENCY_SUBTYPE
END AS FREQUENCY_TYPE
L.TRANSACTION_DATE
L.PROCESS_DATE
START_TIME
END_TIME
DATEDIFF(MINUTE,START_TIME,END_TIME) AS TIME_TAKEN
L.RECORD_COUNT
L.EXECUTION_STATUS
L.ERROR AS ERROR_DESC
P.PRIORITY_NUMBER
P.COLOR_CODE
OF dbo.JOBS J AS
INNER JOIN dbo. ACE OF FREQUENCY F
ON J.FREQUENCY_ID = F.FREQUENCY_ID
INNER JOIN dbo. JOB_PRIORITY AS P
ON J.PRIORITY_ID = P.PRIORITY_ID
INNER JOIN dbo. TBK_POS_FACT_LOADING_SUMMARY ACE L
ON J.JOB_ID = L.JOB_ID
WHERE F.FREQUENCY_TYPE = 'NONE '.
AND)
(@PERIOD = 'TODAY' AND CONVERT (DATETIME, CONVERT (DATE, L.START_TIME)) = @REPORT_DATE) OR
(@PERIOD = 'MONTHS' AND ((START_TIME) YEAR * 100) + MONTH (START_TIME) = @MONTH) OR
(@PERIOD = 'YEAR' AND YEAR (START_TIME) = @YEAR)
)
AND J.JOB_ID = @JOB_ID
AND CONVERT (DATETIME, CONVERT (DATE, L.START_TIME)) < = @REPORT_DATE
END
GO
I tried to convert it to a format of oracle... But I get the error message.
--------------------------------------------------------------------------------------------------
CREATE OR REPLACE PROCEDURE POS.sp_rpt_get_job_log_on_demand_V)
JOB_ID NUMBER,
DATE OF REPORT_DATE,
PERIOD VARCHAR2 (100))
AS
BEGIN
l_MONTH: = TO_CHAR (REPORT_DATE, "YYYYMM");
TODAY: = TRUNC (REPORT_DATE);
l_YEAR: = TO_CHAR (REPORT_DATE, 'YYYY');
SELECT J.JOB_ID,
J.JOB_NAME,
CASE
WHEN F.FREQUENCY_SUBTYPE IS NULL, F.FREQUENCY_TYPE
OF OTHER F.FREQUENCY_TYPE | '-' || F.FREQUENCY_SUBTYPE
END
AS FREQUENCY_TYPE.
L.TRANSACTION_DATE,
L.PROCESS_DATE,
START_TIME,
END_TIME,
(END_TIME - START_TIME) AS TIME_TAKEN,
L.RECORD_COUNT,
NVL (L.EXECUTION_STATUS, "NOT STARTED") AS EXECUTION_STATUS,
L.ERROR AS ERROR_DESC,
P.PRIORITY_NUMBER,
P.COLOR_CODE
OF POS.JOBS J.
POINT OF SALE. FREQUENCY F,
POINT OF SALE. JOB_PRIORITY P,.
POINT OF SALE. TBK_POS_FACT_LOADING_SUMMARY L
WHERE J.FREQUENCY_ID = F.FREQUENCY_ID
AND J.PRIORITY_ID = P.PRIORITY_ID
AND J.JOB_ID = L.JOB_ID
(PERIOD = 'TODAY'
AND TO_CHAR (L.START_TIME, 'YYYYMMDD') =
TO_CHAR (REPORT_DATE, 'YYYYMMDD'))
OR (PERIOD = 'MONTHS' AND TO_CHAR (START_TIME, "YYYYMM") = MONTH)
OR (PERIOD = 'YEAR' AND TO_CHAR (START_TIME, 'YYYY') = YEAR)
AND F.FREQUENCY_TYPE <>'NONE'
AND TRUNC (L.START_TIME) < = TRUNC (REPORT_DATE)
AND JOB_ID = J.JOB_ID
UNION ALL
SELECT J.JOB_ID,
J.JOB_NAME,
CASE
WHEN F.FREQUENCY_SUBTYPE IS NULL, F.FREQUENCY_TYPE
OF OTHER F.FREQUENCY_TYPE | '-' || F.FREQUENCY_SUBTYPE
END
AS FREQUENCY_TYPE.
L.TRANSACTION_DATE,
L.PROCESS_DATE,
START_TIME,
END_TIME,
(END_TIME - START_TIME) AS TIME_TAKEN,
L.RECORD_COUNT,
L.EXECUTION_STATUS,
L.ERROR AS ERROR_DESC,
P.PRIORITY_NUMBER,
P.COLOR_CODE
OF POS.JOBS J.
POINT OF SALE. FREQUENCY F,
POINT OF SALE. JOB_PRIORITY P,.
POINT OF SALE. TBK_POS_FACT_LOADING_SUMMARY L
WHERE F.FREQUENCY_TYPE = 'NONE '.
AND J.FREQUENCY_ID = F.FREQUENCY_ID
AND J.PRIORITY_ID = P.PRIORITY_ID
AND J.JOB_ID = L.JOB_ID
(PERIOD = 'TODAY'
AND TO_CHAR (L.START_TIME, 'YYYYMMDD') =
TO_CHAR (REPORT_DATE, 'YYYYMMDD'))
OR (PERIOD = 'MONTHS' AND TO_CHAR (START_TIME, "YYYYMM") = MONTH)
OR (PERIOD = 'YEAR' AND TO_CHAR (START_TIME, 'YYYY') = YEAR)
AND JOB_ID = J.JOB_ID
AND TRUNC (L.START_TIME) < = TRUNC (REPORT_DATE)
END;
/
POS PROCEDURAL errors. SP_RPT_GET_JOB_LOG_ON_DEMAND_V:
LINE/COL ERROR
-------- -----------------------------------------------------------------
4/28 PLS-00103: encountered the symbol "(" quand attend un de la) "
Next:
:= . ), @ % of default characters
The symbol ': = ' has been replaced by "("pour continuer.) "
76/1 PLS-00103: encountered the symbol "END" when awaits an of the
Next:
. (* % & -+; / TA for rem rest mod < an exhibitor > (*))
and or group having intersect less order start union where
connect | multiset
The symbol ';' was replaced by 'END' continue.
Thank you and best regards,
John of Vikash
Keep in mind, DBMS_OUTPUT is reserved for debugging purposes. If you want the output to a front-end, you can use SYS_REFCURSOR as OUTPUT parameter and get the data of the SELECT query.
-
Convert a varchar2 data type Date
Hi guys,.
Can someone help me convert a Varchar2 data type in the data type Date?
I have a query and my column is a varchar2 data type.
I want to just that convert the Varchar2 in a DATE, because I met
problem in my query. I want to do the day1 day10 transaction.
Ex:
Day 1 = January 1, 2010
Day10 = January 10, 2010
table.record_date varchar2 (12)
SELECT column1, Column2
table
where record_date between? and?
How can I set the record_date between day1 and day10 since record_date is of type varchar?
Thank you.
LaetitiaLala,
If the data in the database are in the format MM-DD-RR , then you must use the same format when you convert back to this day.
So change the query to
SELECT COLUMN1, COLUMN2 FROM TABLE WHERE TO_DATE(RECORD_DATE, 'MM-DD-RR') BETWEEN TO_DATE('01-JAN-2010') AND TO_DATE('10-JAN-2010')
Kind regards
Manu.
Maybe you are looking for
-
Hijacked home page. Tried to reinstall the browser
My pc has been infected. Adware and others. Some extensions have been added to the browser. I uninstalled them. I have also quarantined just guilty possible. I tried the suggestions on the Q & an area. There is no add-on which could be the cause. I d
-
Toshiba Satellite U400-14Z upgrade to a faster processor - which is the most rapid possible?
Hello. I want to upgrade an old Toshiba Satellite U400-14Z (http://www.toshiba.eu/discontinued-p...lite-u400-14z/) a little by changing the CPU. Initially there is a processor Intel Core 2 Duo P8400 with FSB to 1066 MHz but I thought to put there P97
-
Big problem when changing the map graphic on the Office of envy.
My desire H8-1419 uses the card Radeon HD Eyefinity 7570. I want to use a Zotac GeForce GTX 650 Ti card (dual slot). The card physically fits without difficulty but there is no display on startup (the machine emits a signal monitor says 'no signal').
-
Cannot open any office files or icons, the Panel even not. Help!
HelloI really need help desperately. I can't open any office files or icons. I restored to the point the closest that I can, but no difference. Cannot open the Panel even from the Start button. My compuetr crashes every time I double-click or right-c
-
After attempting to clear the password at startup in the BIOS I was going into a more serious problem. Whenever I try to turn on my laptop it appears a black screen saying: "cannot start Windows. A recent hardwqare or software change might be the cau