the database output formatting

I have entered in a database in three separate fields, the day, month and year. The month and day fields are (2) tank and the year is int (4). When the data were entered into the database, the days and the months have been entered as single digits, for example, if the day was the 6th, she was listed as 6. If the day was the 10th, she was listed as 10.

I try to format the output in the repeating region of uniform width and I would add a 0 to any day or month field has only 1 digit, so that the result would be formatted as on 04/06/2005 instead of the 04/06/2005. I already understood how to reach the three fields with / between the fields.

Is there a formula which is applied on the ground to put a 0 in front of single digit?

Thank you.

Sorry, this is PHP.

Still, I would like to know how do for the future, but for this particular problem, I came across a solution.

In the mysql itself database (phpMyAdmin), I changed the day and the month of char (2) to int (2) and then set the unsigned zerofill attributes. It then displays 6 06.

Miriam

Tags: Dreamweaver

Similar Questions

  • Error in the REST Web Service with the text output Format

    Hi all

    I am referencing a REST web service and can successfully connect to it and retrieve the results with the output XML value Format.

    I don't need the node values, I want to just grab the entire XML string and fill a table with her column.

    When I create a new Rest web service reference, including the text output Format value and then create a form/report to run it, I get the following error when I click on "send":

    ORA-06550: line 1, column 63: PLS-00103: encountered the symbol "end-of-file" when expects it one of the following numbers: (- + new case mod not null to other current County avg exists max min prior sql stddev sum variance execute forall time timestamp interval date fusion pipe)
    Error sending request.

    There is control in the XML characters, but surely, this is handled by the Apex, so I'm not sure what the problem is here.

    Any ideas most welcome.

    Thank you
    Rhodri

    Rhodri:

    Request Express waiting for answer text actually be answer text, delimited by other characters that denotes a new value and a new Recordset. You should leave the response as XML. The XML document will be stored in the column xmltype01 in the collection that you specify. You can then convert this column xmltype01 in a clob, if you like using the. toClobVal().

    Kind regards

    Jason

  • The PLSQL output format?

    Hello

    I have a PC that runs a query and writes the output to an operating system file. If I run this Toad, or any tool there is a field VARCHAR2 (500) that is readable and seems OK.
    However, when it is written to a file or the generated .txt imported what all the lines are broken

    Example:
    0|1;30/11/10|01/01/01;E;2|PRUEBA|R;98|0;PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA 
    PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA 
    PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA 
    ;832734;0;C;01/01/01|0|0;0;-;-;-;-|-|-|-|-;7|PRUEBA PRUEBA PRUEBA PRUEBA |7|0;1|PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA PRUEBA |1|3;0|-|-|-;0|-|-|-
    0|1;30/11/10|01/01/01;E;
    Import the file into excel for example to help; as a separator will make this data is present in 4-5 lines instead of one.
    How can I fix? I put a maximum length of well above the value line when I do UTL_FILE. FOPEN so this isn't the problem.

    Thank you in advance.

    Can you post the UTL_FILE code that you use to open the file and write the data? You have opened the file in a hex editor to confirm unexpected line breaks exist in the file before you run the import process and that are not artifacts of all import process that you use? Did you DUMP had the VARCHAR2 variable data (500) to confirm that there are no line breaks in the data?

    Justin

  • Change default value of output format you 'Keynote 09 '.

    Hi all

    I use Keynote 6.6.2 and I need your help to know how to use the 'Keynote ' 09"as the default output format, without an export each time.

    In my company, I'm the only one with this version of Keynote, if no one else can use my files and allows us to work on the same files really often!

    Thank you for helping me.

    Kind regards

    Nicolas

    The only way to create 09 files from Keynote 6.6.2 is to use file > export > Keynote 09

  • backs up all blocks of logic control validate the database

    Hello

    Metalink: How to use RMAN, check for logical and physical database Corruption [ID 283053.1]

    The following example shows how to validate all data files:

    Run {}
    allocate channel d1 type disk;
    backs up all blocks of logic control validate the database.
    output channel d1;
    }


    This command checks only corruption, or it is actually trying to save the data files on the disks?

    Thank you

    Hello

    The BACKUP VALIDATE statement is used to check The corrupt block is not for the performance of a backup.

    You will have more details on the following links:

    http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270/rcmvalid.htm#CHDECGBJ

    http://download.Oracle.com/docs/CD/B28359_01/backup.111/b28270/rcmvalid.htm#CHDCEHFD

    Hope this helps.
    Best regards
    Jean Valentine

  • Call a BI of OAF editor report, then save the PDF output as a BLOB in the database

    Hi all

    I have a requirement to customize the iExpenses page.

    I need to generate a PDF output with the detailed expenditures report when the user clicks on submit button to create an expense report.

    I need to take this pdf file and attach it to the expense report itself (with attachments fnd)

    I have an idea about creating a BEEP report and call it from the OFA.

    Usually, we write the pdf to the outputstream and view the pdf in the browser / to the local machine.

    Can someone send me some code examples to capture this pdf file and write back to the database as a BLOB.

    Thanks in advance.

    Arun...


    You can do it in two phases. Get first the BI Publisher API part works so that it returns the PDF file in the browser. You can see how it is done here:

    https://dineshnair.WordPress.com/2009/06/02/integration-of-XML-Publisher-with-oafgenerating-output-in-PDF-MSWord-MSExcel-and-HTML-format/

    Once you have this work, your code will need to the pdf file in a stream of data that you can then write to a blob in a table. You can see an example of a blob in a table here:

    Inserting BLOB using java for DB2 and Oracle - Stack Overflow

    I hope this helps.

  • Simultaneous report runs very slowly when the output format is 'XML' on IBM 6.1

    We have recently updated one of our test server database IBM AIX 5.3 to 6.1 operating system. We are witnessing a strange question in the execution time-out of simultaneous reports that have output in XML format (no server of publication and the Publisher). Whenever the output format is set to XML, the execution time seem to have increased very high than it used to be less than 5.3. A report to take 10 seconds which takes about 4 minutes to complete which is huge in comparison. Information about the version as below

    Oracle EBS 11.5.10

    Oracle 10.2.0.4.0 DB

    IBM AIX 6.1 OPERATING SYSTEM

    Oracle reports 6.0.8.28.0 (I know old enough)

    Provide expert advice.

    Thank you!

    All the

    We have solved the problem. I would like to share for the benefit of the readers of the community, if they are facing similar problems.

    The reason for the slowness of the report was due to lack of installation of the 'VIEW' option that is used when XML reports. Reports whose outputs are in format PDF, XML, HTML etc, Post Script, they all need a virtual display makes setup and configuration properties of config pointing to this server whenever settings are do. It could be a windows machine with X-Server running on it for display purposes or it could be services that are running on the same server for Unix/Linux applications where the application runs. We have installed VNC as X-Server that hosts services for virual (X) output for display on UNIX itself and have configured it in the reports configuration file. It seems to have solved the problem and the reports are run as expected (must faster!)

    Thank you

    Girish

  • ID package already in use, an error has occurred during the recording of output ' 1.1.0"to the database.

    Hello

    I currently have an application called "Apa Doanya' (id 33020976) for BB 7 and below. Now, I created another version of it for BB10. To publish this version BB10, I created a new application named also "Apa Doanya' (id 46317888), download the file bar, but not yet to introduce the new application for review. Later, I changed my mind, I want to release this BB10 version under the name of my current application so that I can keep the sides and the current download figures. So in my application, I added a new version, download the folder bar and increment the version 1.1.0. But I got an error when recording on step 5, he said:

    Package already in use ID
    An error has occurred during the recording of output ' 1.1.0"to the database.

    I tried several times but no luck. What has caused this? Is - it because I already download the bar file to another application (id 46317888)? Just to be sure, I remove bar app 46317888 file and download a dummy cod file (so that the application can be saved). Then repeat the previous step (add a new version and so on) but I still have the same error.

    Really appreciate any help.

    -Hammemi - D

    Hi erik,
    Thanks for reminding me

    Yes, the problem is now RESOLVED. It was, I think, a bug/error on their part (support of the seller) so they erased the package id (I quote: "the package ID has been deleted.").

    Thank you very much :-)

  • Hello, need help for Adobe Reader DC playing animation files that are specified in the pdf output by script Latex Beamer. My Adobe Reader DC refuse to open any format that I gave him.  Thank you very much

    Hello, need help for Adobe Reader DC playing animation files that are specified in the pdf output by script Latex Beamer. My Adobe Reader DC refuse to open any format that I gave him.  Thank you very much

    Hey ihorl18351266,

    Please note that you can open PDF files using only the CD player. Any other format will not be supported by the software.

    Kind regards

    Ana Maria

  • date format in a direct request of the database

    I have a report with the direct request of the database.
    I have a quick date... I'm storing the date in a Variable named pv_date presentation.

    In the application of direct database, I have a where clause clause:

    WHERE business_date IN (@{pv_date} {' 01 / 01/2013 '})

    When I run the dashboard open for the first time, his throw me an error near TIMESTAMP.

    WHERE business_date IN (TIMESTAMP "2013-01-01 00:00:00")



    AND ALSO when I run this report to dashboard after you've chosen a date say 20/02/2013, I see the query in the form:

    WHERE business_date IN (2013-02-20 00:00:00)

    and that's why throwing error.


    His mistake to launch in both cases. How can I change the format in the WHERE clause.

    Ideally, I want the query to be WHERE business_date IN (' 20 / 02/2013 ') or Business_date IN ('' 2013-02-20)

    Since you are using Direct database application, you can use the database functions specific to your database such as to_date or to_char.
    Its as good as Toad or sql developer.

    I don't think you should use function must be evaluated as Sai said, correct me if I'm wrong.

    Published by: Srini VIEREN on 29 March 2013 09:21

  • What output format is required for the Cambodian broadcasting TV?

    I'm in the USA.  I was invited to shoot a video for use on Cambodian television, that looks like 4:3.  I have only the newer equipment that pulls in the H.264 format.  My camera main is a camcorder Sony HDR AX-2000 which is able to shoot 480/30 p or 480/24 as its lowest quality.  How give a video that is or is not Letterbox that will play a show?  What can media use?

    Thank you.

    Gary Silverstein

    http://weshoot.com

    Cambodia uses PAL and NTSC, so you will need more information. The format offers media may also be different from the broadcast signal. Once you know what you produce, Premiere Pro fortunately will convert your film - either at the point of export, or according to a preset of the sequence. It doesn't matter what is the codec of your camera recording. Ideally, you'll want to shoot at the same rate, and if it is guaranteed to be only a 4:3 output you would get 4:3 or use safety locks on your monitor 16:9 4:3, then you have some option to pan your shots in the frame. Even with SD vs HD - HD view taken is logical, even if the program is known to be SD, you get a lot of flexibility for pan and evolve into position.

  • Import of database with the new file format

    Hello

    If the dump with the format .dmp file file then we use the file userid/pwd@connectstring imp = * .dmp

    But I got the database file whose extension is. The format of the exp.

    How can I import data from oracle database.

    File type is the EXP file.


    Concerning
    Sudhakar P.

    Sudhakar P wrote:
    Hello

    Sm1/sm1@win1ced_re7.dev file C:\oracle\oracle92>IMP = c:\sm1_lun.exp

    Import: Release version 8.1.7.4.1 - Production Tue Oct 28 11:53 2010

    (c) Copyright 2000 Oracle Corporation. All rights reserved.

    Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With partitioning, OLAP and Oracle Data Mining options
    Release 9.2.0.1.0 - Production jserver

    IMP-00010: not a valid export file, header check failed
    IMP-00000: Import terminated unsuccessfully

    He thorws a mistake

    can you suggest me

    Concerning
    Sudhakar P.

    As has already been suggested, contact the person who provided the file to know what format it is. A necessary file extension does not indicate any particular format, especially when it comes to "dmp", "exp" etc. so many different applications can use them.

  • Store the output XML editor in the database blob column

    Hello

    We have a requirement to store the pdf files generated by several applications simultaneous xml editor in a database blob column, so that they can be recovered later, whenever required by the user. As far as we know, publisher concurrent request XML output files are stored on the node of simultaneous treatment and the location of the file does not exist in the FND_CONCURRENT_REQUESTS table. But these files to purge from time to time. We are therefore looking for a solution to store these files in the database to the display if necessary.

    If someone knows a solution or can point me to the right direction, it would be much appreciated.

    Thank you very much
    Mary

    Hi Mary,

    You must load the PDF files in the database. Write a regular competitor program which monitors fnd_concurrent_requests and load a custom table or fnd_lobs with any editor of BI exit function application concurrent reading files. BI Publisher output files according to naming convention, so easy to find. http://garethroberts.blogspot.com/2008/07/where-do-i-get-XML-file-or-request.html

    Kind regards
    Gareth

  • How to manage no data found in pdf format using the rtf output

    Hello

    In my rtf model, I have two frames - frame1 and frame2,

    These frameworks are based on the G1 group. Group G1 features of elements empid, empname

    My requirement is

    1. to return frame1 when the query (i.e. group G1) has given, this frame1 would print out the pdf of the report xml editor - correct work

    in the xml output, I saw that < LIST_G1 / > generates as below

    < LIST_G1 >

    < G1 >

    < EMPID > 1234 < / EMPID >

    JOHN < EMPNAME > < / EMPNAME >

    < G1 >

    < G1 >

    < EMPID > 1235 < / EMPID >

    BRAND of < EMPNAME > < / EMPNAME >

    < G1 >

    < G1 >

    < EMPID > 1236 < / EMPID >

    TONY < EMPNAME > < / EMPNAME >

    < G1 >

    < / LIST_G1 >

    2 return frame2 whenever the request (i.e. the group G1) has no data this frame2 output print pdf of the xml editor saying no report given - would not exist currently working.

    output is

    < LIST_G1 >

    < / LIST_G1 >

    (see there is no entry for < G1 > < / G1 > at all.)


    Now because of that, my frame1/frame2 who checks the value <? choose:? > <? When: County (G1). = 0 ? > out of the reutrning in the first case (as expected)

    but don't return do not all outputs in the 2nd case (his does not work as expected by me)


    Any pointers or help appreciated.


    Thanks in advance

    It solved using the IF ELSE block in the two frames, I'm back frame1 for the scenario IF count (G1) > 0 and return frame2 for another scenario.

  • Setup error CS6, inconsistency in the database of the installer, code output 15

    Hello

    I am trying to install Photoshop CS6 on my new Mac.

    After asking 2%, I get the error message "Setup error CS6, inconsistency in the database of the installer."

    The file of summary shows error code fatal exit 15 and 0 errors/errors/warnings.

    I've seen the other threads in this forum with the same error and I tried the only suggestions here, but so far no luck.

    My Photoshop CS6 is a version downloaded from the Adobe Web page. Everything works fine until the installation begins.

    These are the actions that I have tried:

    1. restart and reinstall

    2 cleaning adobe tool (no result because there was nothing to clean up)

    3. I have disabled the software from my old computer

    4 tried to install it in safe mode

    5. I was contact Adobe support, did not get much support at all. After awhile, I was told to open a discussion in this forum.

    Please help... spent two days on this already.

    Jeff,

    Finally... The problem is resolved.

    I contacted chat support and the person I spoke to connected to my computer and only could find a corrupt file that caused the whole issue.

    Once the file has been deleted, installation could be completed without any problems.

    Thank you for your support.

Maybe you are looking for