How can i store the following pattern in the table automatically.
hey hi fellas
i need a table which can automatically store elements in following pattern:
IN00001
IN00002
IN00003
IN99999
thanks in advance
PL/SQL
Similar Messages
-
How Can i Store photo (image) in column of table
Dear Experts,
I need to store a employee photo in column so how can i do tha same.This assumes that the images in question currently reside on the database server. If you want to upload images into the database from a client machine, you will need an extra step where you move the files to the appropriate directory or directories on the server. This example will store the images in a BLOB column, rather than a much more flexible interMedia ORDImage column. A BLOB column is fine if you only want to store and retrieve the image, but interMedia gives you significantly more flexibility to manipulate the image, extract metadata, etc.
Create the directory
First, you will want to tell Oracle where it can find the images you want to insert into the database. The easiest way to do this is to create a directory object. In this case, I will be loading images from 'c:\temp\img\'.
CREATE DIRECTORY images AS 'c:\temp\img\'
If you don't have the CREATE DIRECTORY privilege, you will need to have someone else, like your DBA, create the directory and grant you READ access to it.
GRANT READ ON DIRECTORY images TO scott;
Create the Table to Hold the Images
CREATE TABLE images (
image_name VARCHAR2( 100 ),
mime_type VARCHAR2( 100 ),
content BLOB
Create a Stored Procedure to Load the Image
CREATE OR REPLACE PROCEDURE load_image( file_name VARCHAR2 )
AS
file_lob BFILE;
binary_lob BLOB;
mime_type images.mime_type%type;
extension_pos NUMBER;
BEGIN
-- Use the extension of the file name to determing the MIME-type
-- The MIME-type for a .JPG file will be image/jpg
extension_pos := INSTR( file_name, '.' );
mime_type := 'image/' || SUBSTR( file_name,
extension_pos + 1,
LENGTH( file_name ) );
-- Insert a new row into the images table. Get the LOB locator
-- for the newly inserted row-- we will be using that to insert
-- the content from the file.
INSERT INTO IMAGES( image_name, mime_type, content )
VALUES( file_name, mime_type, empty_blob() )
RETURNING content INTO binary_lob;
-- Open up the file in the IMAGES directory named file_name,
-- load that file into the newly created LOB locator, and
-- close the file
file_lob := BFILENAME( 'IMAGES', file_name );
dbms_lob.fileOpen ( file_lob, dbms_lob.file_readOnly );
dbms_lob.loadFromFile( binary_lob,
file_lob,
dbms_lob.getLength( file_lob ) );
dbms_lob.fileClose ( file_lob );
END;
Load the Image
scott@jcave > exec load_image( 'sample.jpg' );
PL/SQL procedure successfully completed.
scott@jcave > column image_name format a30;
scott@jcave > column mime_type format a15;
scott@jcave > column length format 999999;
scott@jcave >
1 SELECT image_name, mime_type,dbms_lob.getLength( content ) length
2 FROM images;
no rows selected
Elapsed: 00:00:00.00
scott@jcave > /
IMAGE_NAME MIME_TYPE LENGTH
sample.jpg image/jpg 9894
Regards
Lakmal -
How can i store a picture file in a table using sql
can anyone help me
to store a pic file in a table using sqlYou can find an example in this link
http://www.orafaq.com/forum/t/38347/0/ -
I buy a new iPhone s5 When I enter to iTunes Store The iTunes Store won't connect. I have a Apple ID But. I am from Algeria Plz how can iTunes Store connect
What have you tried to fix it ? If you haven't already done so then see if any of the following fix it :
- log out of your account on your phone by tapping on your id in Settings > iTunes & App Store and then log back in
- close the iTunes store app via the multitasking bar and see if it works when you re-open it : double-click the home button to open the taskbar, and then swipe or drag the iTunes store app's screen from there up and off the top of the screen to close it, and click the home button to close the taskbar.
- soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the equivalent of a reboot. -
How can i use my apple ID with the itune store over my windows laptop
how can i use my apple ID with the itune store over my windows laptop
If you don't have iTunes installed on your laptop then you can download and install it from here : http://www.apple.com/itunes/download/
You can then log into your account on it via the Store > Sign In menu option (on iTunes 11 on a PC you can get the menus to show via control-B) :
And you can then select the Store on the left-hand sidebar (you can enable the sidebar via control-S), and then browse items in the store and buy them by clickin on their price. -
When I click on a link in an email using gmail in the Mozilla brower, I get the following message at the top of the screen:
"Firefox prevented this page from automatically redirecting to another page...[Allow].
How can I stop this?# Press Alt+T
# Select Options
# Select Advanced Panel
# Select General Tab
# You will see option "Warn me when websites try to redirect or reload page"
# Uncheck it as given in the screenshot.
<img src=http://dl.dropbox.com/u/7456129/Firefox/advancedgeneraltab.jpg width=600px height=600px>
''<hr>Note: If anyone's reply has solved your problem, then please mark that reply as "Solved It" to the right of that reply after logging in your account. It will help us to concentrate on new questions.'' -
How can i store the data from the list to MS-Access?
Hi all,
We all know that from alv it is possible to export data to Ms-excel or word or text file. Can anyone tell me how can i store the data from alv or reports to Ms-Access?
Thanks in Advance,
AbhijitHi,
If you want that without code, i suppose there is a option in MS-Access to import data from Excel, so you have to first export to excel and then import to Access.
If you want to code it yourself then have a look at FM TABLE_EXPORT_TO_MSACCESS, as said in Exporting Data from R/3 to MS ACCESS
You can also see the search results in SCN for [export data to MS-Access (45 Results)|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=exportdatato+MS-Access&cat=sdn_all].
Regards
Karthik D -
How can I store iPhoto files on an external hard drive rather than on the iMac drive
How can I store my iPhoto library on an external hard drive rather than the iMac drive to make my computer faster?
Make sure the drive is formatted Mac OS Extended (Journaled)
1. Quit iPhoto
2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
Regards
TD -
How can I download itunes when I get the following errors ..ituneshelper did not install correctly error 7..I .have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up.
This has been a problem for 6 weeks now, I retry when I have time and patience and use my other laptop which is also Windows 7 and runs with no problem.
Every attempt fails when all seems fine on the desktop and I try to log on to Itunes I get the errors.
Any help greatly appreciated.
billymacGo to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
Remove all of these items in the following order:
iTunes
Apple Software Update
Apple Mobile Device Support (If this won't uninstall press on)
Bonjour
Apple Application Support
Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
C:\Program Files (x86)\Common Files\Apple\Apple Application Support
and paste into:
C:\Program Files (x86)\iTunes
The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
tt2 -
I live in China, have Dutch nationality, and no US address or Credit Card; how can I have access to products from the US iTunes store, in particular music, when such items are not available from the China iTunes store? In general, what are the differences between countries' iTunes offerings? Does one really need an address and a credit card for any country to be able to access that countries iTunes store? Why these restrictions?
You cannot.
You cannot use another countrys itunes store.
You must be physically locates inside the borders of a country to use that countrys itunes store and a credit card issued in that country with a valid billing address in that country.
The owners of the distribution rights of movies/music/etc differ by country. These distributors decide who can sell their content in that country.
Buy from another source if your countrys itunes store does not carry somehting that you want. -
the following message appears "The itunes library file cannot be saved. You do not have enough access privileges for this operation." how can i resolve this?
I am having the same issue and suggestions on other pages are not working ... why has this started all of a sudden?
-
How can I store an output, i.e C from the attatchment in an array?
Attachments:
Testing.vi 18 KBHi, Se
Take a look my example.
Attachments:
Testing.vi 23 KB -
How can I edit my apple ID in the app store the enable update some applications because it not my own that is showing
It sounds like some apps were purchased using another Apple ID.
ALL purchases are permanently associated with whatever Apple ID was used to originally obtain them. Apps can not be updated without knowledge of that ID and, more importantly, its password. Apple IDs can not be merged and purchases can not be transferred from one ID to another. -
How can i pay my unpaid transaction in the app.store because my credit card was already close and i cant download even the free application ?
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
I purchased Damages, season 2,
from iTunes Store, and I got it in French by mistake.
How can I exchange this season, or change the language? (My playback setting was already
on English for default language).
Thank you,
Judith HameryOnly Apple Account Security could help at this point. You can try calling Apple Support in Canada - you'll have to find one of the several ways, such as Skype, to call an 800 number from outside of the relevant country - and ask for Account Security and see if they can help. Or you can find a friend who speaks Chinese and ask them to help you talk to Apple Support in China. There are really no other options that I know of.
Note, by the way, that these are user-to-user support forums. You aren't speaking with Apple when you post here.
Regards.
Maybe you are looking for
-
PDF reports and forms11g, Weblogic, call report from form, parameters
Hi All. I had difficulty to put to work reports 11g on pdf format. this is how I solve it. I hope help any of you and also anyoe can correct me if Im wrong. 1. I have installed an configured the weblogic server 10.3.3, also Forms, Reports, Portal, Di
-
I am trying to update my iPad 4 to iOS 5.1 but there is no software update button under General. What should I do?
-
No processing log for outbound delivery for output type
Dear Gurus, I want to see processing log for output type for outbound delivery . But when i click processing log push button for output type for outbound delivey , one error is comming as 'NO PROCESSING LOG FOR OUTPUT TYPE'. Could you please let me
-
Hallo, I cannot open PDF files. I download them, when I try to open, the message with damaged file and cannot be repared appears on my screen.I did delete and install Adobe Reader, but I have the same problem. Can anyone help?
-
Posted in both the Dreamweaver and Dreamweaver Application Development forums. Mac OS X 10.5 (Leopard) uses Apache 2.2.6. This is NOT compatible with the Mac PHP package recommended in all my books. Marc Liyanage (www.entropy.ch/home) is aware of the