Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8098915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:13:53+00:00 2026-06-05T22:13:53+00:00

I am trying to extract the below query: select ‘<tr><td>’||column1||'</td>’, ‘<td>’||column2||'</td>’, ‘<td>’||column3||'</td></tr>’ from table

  • 0

I am trying to extract the below query:

select
'<tr><td>'||column1||'</td>',
'<td>'||column2||'</td>',
'<td>'||column3||'</td></tr>'
from table

In the above, column3 is a date field. When the output is printed, it is ignoring the time part. For example:

If columns 3 output is : 5/25/2011 3:03:17 AM
The above query returns : <tr><td>column1</td><td>column2</td><td>**25-JUN-11**</td></tr>

I have tried to_date(column3,’yyyy/mm/dd HH24:MI:SS’) and also, the normal query prints the time

select
column1,
column2,
column3,
from table

columns 3 prints time. Any help is appreciated.

EDIT:
I am using Oracle 10g. I have also tried it in Oracle 9i

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:13:57+00:00Added an answer on June 5, 2026 at 10:13 pm

    Don’t rely on implicit conversions, use TO_CHAR to display a date to your liking:

    select '<tr><td>'||column1||'</td>', 
           '<td>'||column2||'</td>', 
           '<td>'||to_char(column3, 'dd/mm/yyyy hh24:mi:ss')||'</td></tr>' 
      from table 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to extract the StateLongName and StateShortName values from the xml below. I
im trying to extract some files from a jar-file downloaded using java-webstart. below code
I am trying to extract some parts of the Video: line from below text.
I am trying to extract the below pattern from a string using Ruby and
I am trying extract some information from the below given string >>> st =
I'm trying to extract data from a table in access database using odbc connection
I am trying to extract the table from database and trying to open it
I am trying to extract a link using xpath from the below mentioned url
I am trying to extract column1 based on the values of column2. I would
I'm using the javascript code below trying to extract the number after gallery-entry_ in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.