How to replace a number or a number in the string
Hai AllI have a line of text consisting of 32 characters and I cut it into four. And now in the last field of emp code I have now four character so I need to add three before the string
for example
the line of text is 00000000121212120102201016500123 and I got 16 first as code to bars and 8 as date and 4 depending on the time and now I need to replace or added to the last channel called empcode 3
M_barcode: = substr (mstr, 1, 16);
M_bardate: is to_date (substr (mstr, 17, 8), ' DD/MM/YYYY');.
M_bartime: = substr (mstr, 25, 4);
M_empcode:=substr()
For example pls
Thanks and greetings
Srikkanth.M
the last code emp field I has four characters, so I need to add three before the string
not exactly sure so maybe empcode or empcode2 should do the trick:
SQL> with t as (select '00000000121212120102201016500123' mstr from dual)
--
--
select substr (mstr, 1, 16) barcode,
to_date (substr (mstr, 17, 8), 'DD/MM/YYYY') bardate,
substr (mstr, 25, 4) bartime,
3 || substr (mstr, -4) empcode,
3 || substr (mstr, -3) empcode2
from t
/
BARCODE BARDATE BARTIME EMPCODE EMPCODE2
---------------- --------- ------- ------- --------
0000000012121212 01-FEB-10 1650 30123 3123
1 row selected.
Tags: Database
Similar Questions
-
How to replace a number with a string
Hello
I am trying to replace the value + 1.23 in 1 P 23 and if it is negative - 0.23 in 0N23, can someone help me with this?
Check the fixing.
-
Number of the string syntax - padding zeros in keeping the decimal values
Hello team,
I'm trying to get a number, paved with up to 3 zeros to the left and keep the two decimal places of it.
IE: If the number is 6.25 then I want the string "006.25".
If it's 60.125 I want to make "060.12" (rounded to the hundredth decimal closest)
I tried using the 'String Format"with variations of differnet from the '% 03d' and '.2f '. but I can't have one the right combination of both of them in a single order. Am I missing something here?
With the help of LV2011
Thank you
Have you tried %06.2f?
-
How to change phone number in the settings?
I'using iphone 5S for a few days. I put the incorrect installation of bij number. So my contacts do not see my number of wright, is also a problem by text message. I gave the number of wright in wapp, so it's no problem.
How to solve this problem? I tried to change phone settings again and again, put the wrong number comes back after a few seconds.
What should do?
Thanks in advance!
Hello
Go to settings until the second phone especially messages icon
Top of page my number enter correct number.
See you soon
Brian
-
How can I get number of the receiver during the call?
Hello
How can I get the number to which I ask? but before the call is ended? but something else
_phoneCallLog = (PhoneCallLog)_phoneLogs.callAt (_i, _phoneLogs.FOLDER_NORMAL_CALLS);
_callNumber = _phoneCallLog.getParticipant () .getNumber ();
as this does not work with n - 1 behind. and I won't get it the number that I call right now, but I can get the last number that I called.
Phone.getActiveCall () .getDisplayPhoneNumber)
-
How to replace a laptop HARD drive and restore the backup without a Vista startup disk?
Hello
I need to replace the drive HARD internal of my laptop and have a picture of it, created using the backup feature in Vista, on an external USB HDD. However, I've upgraded to Vista XP via a download online and don't have a Vista disc.How can I create a Vista startup disk that will give access to the backup/restore function, which allowed me to restore my backup to the new HARD disk image once I did the replacement? And is there anything else I forget?
Thanks in advance!
Mike
You can borrow a good Microsoft Vista DVD (not Dell, HP, etc).
A good Vista DVD contains all versions of Vista.
The product key determines which version of Vista is installed.There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It is General info how to make a Vista startup repair disk:
Download the ISO on the link provided and make a record of repair time it starts.
Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.
At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.
When you have changed that, insert the Bootable disk you did in the drive and reboot.
http://www.bleepingcomputer.com/tutorials/tutorial148.html
Link above shows what the process looks like and a manual, it load the repair options.
NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.
Read all the info on the website on how to create and use it.
http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/
ISO Burner: http://www.snapfiles.com/get/active-isoburner.html
It's a very good Vista startup repair disk.
You can do a system restart tool, system, etc it restore.
It is NOT a disc of resettlement.
And the 32-bit is what normally comes on a computer, unless 64-bit.
See you soon.
Mick Murphy - Microsoft partner
-
I use CS3 on my pc as an individual which is great for my needs. But for the company where I work (part time), I need to have CS6, for commercial purposes, and I will use it on my own PC, then I'd be interested in using the cloud for this. However, when I leave the company, what is happening?. Can I just transfer the license to another computer / user and reinstall my old CS3? I Uninstall CS3 in order to use the CS6 cloud in the first place?
And all the files that I created in CS3 for my individual goal, can they be used in CS6 and then "downgraded" back to CS3. The reason why I ask is that I can't afford to buy CS6 for my personal use, but I need it for business. Who is?
You don't need to involve the cloud if your wish is to acquire the CS6. CS6 is still sold as a product independent non-cloud, that is likely better than getting through the cloud in view of the problems that face people with the cloud against their old products. In this way, when you're done with everything what you work always mention have CS6 available and can still use CS3 if needed as well.
There is no way to upgrade to CS6 in CS3.
Buy CS6:
---------------------- -
replace only 5 occurance of th in the string
Replace and ReplaceAll replaces strings with the other string but I want to only replace say fifth appearance of ' < an id = anchor 'with' < a style = "..." » ». First, second, and other occurrences of < a should not be replaced. Any suggestions?
Thank you
error in startPos #Left (LeftMenuHtml, evaluate ('StartPos-19')) #color: #88ab2e; border: 0px; #Right (LeftMenuHtml, Evaluate ('Len (LeftMenuHtml) - StartPos')) #. -
Insert page number in the footer
How is - a insert number into the footer of a document from the Page?
Evolution of salvation,
5 pages has three fields in a header or a footer. Aligned left, Center, right.
Click in the field where you want the page number and Menu > insert > Page number (and the number of pages if you wish)
I had a look at your other post (how to insert a line over a foot of page)
How to put the line above the footer area?
and I couldn't find a way to insert a row above each paragraph, not the entire footer:
Bad luck!
Maybe someone else knows how to do this.
Kind regards
Ian.
-
Satellite P200-1EE - how to replace the keyboard
Ive just bought a replacement for my P200-1EE keyboard, I have an idea but how to replace, anyone know?
Hello
The keyboard is fixed with four screws that are hidden under the cover of the thin plastic strip above the buttons of the F1 to F12 keys keyboard.
You may need to remove this plastic cover to gain access to the screws.
But you must be careful because it could break.The keyboard is connected to the motherboard with a flat cable.
First disconnect in order to remove the keyboard.But note; If your warranty is valid you should not try this because it might void the warranty.
-
How to find the serial number of the processor in the MacBook pro s serial number? I have a dead MacBook that was given for service to a third party. I doubt that they have replaced the original parts. Help, please. Thank you
As far as I KNOW, the serial number of the MacBook does not have the serial number of the processor.
-
How to change the serial number when the system board is replaced
How can I change the serial number of the system in the bios of a D530 SSF when replacing the motherboard?
Hello:
I suppose that if that's all you can do with this utility, then it of all you can do.
I do not think I said that the utility likely to modify or add the model number, nor asked the question originally.
You will need to contact HP technical support and have a technician HP bios with any other information you need to tattoo.
Paul
-
How can I add my serial number of the Macbook to the profiling system?
Hello
The serial number of my Macbook does not appear in the system profile information "about this Mac", which is annoying.
I do not know what is the serial number, but how do I add it to the profile system please?
It's a 13 inch white mid-2010.
Thank you
Sarah
Sometimes the motherboard was replaced, but when this was done the serial number of the computer was not burned in the ROM. You can not do anything because the serial number is read from the ROM in which it could be stored. If you are looking about this Mac so you will not be bored as much.
-
I need to get the serial number on my ipod which won't turn on. I can't use the number in the box because he says that the ipod has been replaced, so not the ipod has a different serial number from the box. Is there a way to find the serial number without the ipod or the box?
Its on the back of the iPod in VERY small print:
-
How to set serial number not found error
I replaced the motherboard on my compaq mini 110 now it does not start and says the number of series not found in red and I can't enter bios how can I fix this problem or do I too let hp do?
Hello:
You need to take your laptop to an HP authorized repair center, so they can "tattoo" the BIOS with the model number and the serial number with the DMI tool.
This tool is not available to the public.
Paul
Maybe you are looking for
-
When I right-click on an image that I order to save on the web on my computer, the menu drop-down is displayed. And there, the topic "save image under" will this stupid "image send by e-mail! When I right click too, sometimess I miss and choose the "
-
Pavilion DV7-1245DX: Max RAM for laptop
Hi, I have a Pavilion DV7-1245DX, P/N NB231UA, w / an AMD processor. I would like to know what the MAX RAM I can put in this laptop. Thank you for your help, Chris Santor
-
Hi all! Last Friday, I bought my Moto X play and I play a game that does not act like my old two phones did... In my two old phones, Samsung Galaxy S3 Neo duets and romaric Redmi 2 when I rotate the cell, map fixed keept in the NORTH, but in Moto X p
-
I went down my laptop (HP Pavilion Touchsmart 14-b173TU ) Windows 8 for win 7 64 bit, but I can't connect to internet because I need the driver for network card (integrated 10/100BASE-T Ethernet LAN (RJ-45 connector). It is not found on the website o
-
Get the duration of pproTicksIn/pproTicksOut
HelloI am trying to get the length of a clip of an exported finalcut pro xml first pro CC somehow it seems my next calculation is wrong. TICKS_PER_SECOND is 254,016,000,000 (Source Post).TimeInSec = (pproTicksOut / TICKS_PER_SECOND)-(pproTicksIn / TI