How to limit the special characters for a specific column

Dear gurus,

I have a table with a field Champ_1 emp

in this particular Champ_1 is an address column where the data can be as ' 12 st first floor"but suppose by mistake the user has entered data as 12 st first floor & ' must be restricted (not using relaxation but can this be possible using constraints) so for this we can how to restrict the special characters only not to get entered in the column.


Kind regards
friend

Yes you can do it like this

SQL> create table t (field_1 varchar2(4000));

Table created.

SQL> alter table t add constraint t_chk check(length(regexp_replace(field_1, '[[:alnum:]|[:space:]]'))=0);

Table altered.

SQL> insert into t (field_1) values ('12 st first floor');

1 row created.

SQL> insert into t (field_1) values ('12 st first floor & ');
insert into t (field_1) values ('12 st first floor & ')
*
ERROR at line 1:
ORA-02290: check constraint (ARBORU.T_CHK) violated

SQL> 

Tags: Database

Similar Questions

  • Flash AS3 Pro: How can I change a font for a specific column?

    I would like to use a font for a specific column in a DataGrid.

    Thank you

    Yes, you can set individual policies for cells in a datagrid control. Look at this tutorial: text formatting changes to cells in the DataGrid control. This will give you the basic idea for the outer class, you need to write. In the example, you will see that there are three cells that have changed their color of the text. To change the font, you must first import the new font in your file library and set a name for Actionscript police liaison. Then, you add just a line to set the font for a single cell:

    case "pending":

    TF. Color = 0xFF0000;

    TF.font = 'Times '.

    for example.

  • How to check the resources authorized for a specific organization?

    Hello

    I would check the resources authorized for a particular agency.

    I would use resources such as my driver. The cursor will move by resources with a matching name to a string, then I would choose a count (*) of a certain table that correspond to the authorized resources of a given organization. If this counter is zero, then I add this resource list resources allowed for this org.

    I would have 2 sliders, 1 loop on resources and another one through the organization.

    I know that the method getObjectsAllowed (orgKey) will give me a result set of the resource permitted for a body with the orgKey that I spend in. I'll have to loop through the result set. I want to save some coding. So, I thought that if I could put a count (*) selection of... so I don't have to go through authorized resources.

    Is there a way to select a table or a set of tables to get the resources authorized for a given org?

    Thank you

    Khanh

    Refer to the table of the ACP.

    -Kevin

  • How to see the libraries responsible for a specific application running

    We must find the assoctiated of libraries with a particular binary file at run time. What is the command / procedure to find the same thing?

    I never had something like this, but this does not mean that there is not even if I think a simple way to do this in C++ is not available as a binder all is supposed to be properly taken into account by the linker in the scene of the linker of the build.

    If you link your library in your project, then the only way that something can go wrong, it is if you deliberately take the ramp queue library or the file is damaged.

    As I said, you can search for an exception if you feel that this can happen, but it is a very low possibility.

    I continue to ask the question of what you're trying to do what it can to be a better way to do?

    Or perhaps dispel a misunderstanding on your or my name.

    You have given almost anything to get a complete answer.

    Please explain a little more about the reasons why you think you need to perform this operation?

  • How to get the Date format for a specific date?

    May be it is inept to ask, but I'm aware of the Date.
    which appear on client - it's just that the average customer treats the date.
    Right?
    So what happens if a need to check the format to set the server to date.
    Or need to write common code indicating the date format
    on the server, it is running.

    This requirement came into my mind while using the extract method.
    Actually, I wanted to date of manipulation of the side back end.
    Let's say the time is 04:12:2012 03:05:16.
    Now, if I add 100 minutes, the result will be.
    04:12:2012 04:45:16.

    It's the requirement. Maybe there may be best way to do
    but it's the way I think now.

    Thank you.

    It's something that you don't need to know:
    you have a string containing a date or timestamp, and then he must know the format of this string and not the fornat date used by the server.
    or you have a date or timestamp, and then you can add minutes to it without knowing the format as described before.

  • I have Adobe Acrobat Pro XI.  I went to special characters from the Edit menu and choose some emoji as Favorites, but I can't understand how to insert in the document.  How can I insert special characters into a document?

    How can I insert emoji or other special characters in a document using Adobe Acrobat Pro XI?  I went to special characters from the Edit menu and may not understand how to insert the special character in the document.

    He's not that kind of editor. You can use the characters in a font. If you can select a font with the emoji, which fits into the case, and then enter the characters, it can work.

    This suggests that you try to do TOO MUCH with a PDF file. It is a common thing, but the message should be: everything simply because you can edit a PDF file, does not mean that it is the most effective way for you to do your job.

  • I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?

    I have a new time capsule airport. How to limit the search for who can use the time capsule backup process?

    Set a password to disk... disk tab in the utility... and just give to those you want to use the TC...

  • How to install the plugin and outside the filter in photoshop cs? and all the Special filters for special effects?

    How to install the plugin and outside the filter in photoshop cs? and all the Special filters for special effects?

    Please recommend me a better and such me step by step how I'll add more plugins n filter

    One I normally come with an installer or installation instructions. See the documentation for the plug-in you are trying to install.  It sounds like you don't know what plug-ins you want to install.  In this case, you don't need to install a.  At some point, you can read about a plug-in and what she can do and you feel you need it.  Then you will have a reason to install a plug-in that is not installed by default.  There may be a cost involved more useful plugins are not free.

    Adobe Plug_ins optional downloads are Plugins Adobe want from Photoshop and is no longer installed by default. Also at some point is no longer will install in the course Photoshop Adobe will remove the functionality or use of interfaces. For example CS5 optional plugins install in perpetual CS6 Windows version 13.0.1.3 but not in version 13.1.2 subscription or perpetual Mac version 13.0.6 fot its 64-bit only and CS5 Mac Optional Picture package plug-in is a plug-in of only 32-bit.

    You will need to keep older versions of Photoshop if Adobe remove features you use in newer versions of Photoshop.

  • How to limit the length of the texts on iOS9?

    Hello

    I just worked on why I am required by my mobile / cell phone provider EA.  They charge any text as a picture message / SMS, it is longer than 120 characters?  Does anyone know how to limit the length of the texts / SMS so that it is impossible to send a more 120 characters or create an alert so that you are aware of the number of characters in the text / sms?

    Thank you very much

    Hello Turnus123,

    Thank you for using communities of Apple Support.

    I see that you will have to pay for SMS more than 120 characters.  To help identify messages exceeds this amount, you can activate a number of characters in the message settings.  Simply go to settings > Messages and activate "number of characters".

    Message settings

    Take care.

  • Laptop keyboard just type the special characters (those of accented)

    My Windows 7 laptop keyboard will only be the type of special characters (for example, accented letters) and no regular letters or symbols. Help please? Laptop is currently unusable because I'm unable to type. Have tried to use as well the built-in keyboard and a wireless and issues is both.

    Well oddly enough it turns out be the key "Alt Gr". How have I never noticed that the key next to the space bar? ! He pressed a couple of times & everything back in order. Thanks to the OP, but because you had not mentioned it I would not have thought to try :)

  • The special characters in Spanish - what do I need?

    I use Photoshop 7 to create graphics for a series of training which is transposed in Spanish. I use the FCP 6.03 on a G5. What do need me Adobe to create graphics in Spanish? I have access to some of the special characters of the language using the Spanish keyboard - I can see a list of the characters, but how to use the IDs of the unicode characters in Photoshop to show special characters? I can go down the increase? and! and n tilde; accented vowels are not part of the key combinations.

    Scroll down to Mac key combinations:

    http://www.spanishnewyork.com/Spanish-characters.html

  • How to limit the email receipt/downloaded size?

    I need information on how to limit the size of an email received or downloaded in Windows Mail to reduce the cost of the enamel of satellite data. Want to just send and receive, especially to receive emails with no graphics and keep it small.

    Simply set up for this purpose a message rule: tools, Message rules, mail, new...
     
    Gary van, Microsoft MVP (Mail)
    ------------------------------------------------------

    "moosehuntingguy" wrote in the new message: * e-mail address is removed from the privacy... *
    I need information on how to limit the size of an email received or downloaded in Windows Mail to reduce the cost of the enamel of satellite data. Want to just send and receive, especially to receive emails with no graphics and keep it small.

    Gary van, MVP (Mail)

  • How to limit the number of printers can be installed on this computer by using Group Policy?

    How to limit the number of printers can be installed on this computer by using Group Policy?

    Hello

    Thanks for asking! If I understand correctly, you should limit the printers installed on the computer by using Group Policy. I suggest you follow the troubleshooting steps to check if this may help.

    The question you have posted is related to Technet and would be better suited to the Technet community. Please visit the link below to find a community that will provide the best support.
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

  • How to limit the number of connection to DB

    Hello

    I just go to the topic of connection pooling.
    Here, I would like to understand the number of details of connections that already exists in the database.

    Kindly guide me to know the following details.

    How to know the number of connections available in the database?
    How to limit the number of connections?

    V_$ Resource_Limit contains details of the sessions. Is this even for connections?

    I have more clarification on the difference of connections and Sessions.

    Kindly tell me the above.

    Thank you
    Orahar.

    Orahar wrote:
    Hello

    I just go to the topic of connection pooling.
    Here, I would like to understand the number of details of connections that already exists in the database.

    Kindly guide me to know the following details.

    How to know the number of connections available in the database?

    The number of currently active sessions (db, internal sessions registered)

    SELECT COUNT (*)
    SESSION $ v

    How to limit the number of connections?

    to increase or decrease the maximum number of connections:

    for example: change processes control system = 200 scope = spfile;

    >

    V_$ Resource_Limit contains details of the sessions. Is this even for connections?

    I have more clarification on the difference of connections and Sessions.

    Connection means a user process is successfully connected to the listener to have a session on the database running instance. (listener who listen s new connection requests)
    Establish sessions: means, a (dedicated) server process began to serve a user process. It is done when the credentials of the user authenticated successfully. Now, from process-user shall communicate to the server process directly.

    hope that helps.

    Kind regards
    X.

  • How to limit the length of the EditText control?

    All,

    How to limit the length of an EditText to accept ONLY 3 characters.

    The editText.characters property defines a size by default, but the user can always type more than 3 characters in the field.

    I got it!!!

    var win = new Window("dialog", "Limit 3");
    var txtLimit3 = win.add("edittext");
    txtLimit3.characters = 5;
    
    txtLimit3.onChanging = function (){
              howmany = txtLimit3.text;
              if (howmany.length > 3){
                        txtLimit3.text = "";
                        txtLimit3.textselection = howmany.slice(0,3)
                        }
              }
    
    txtLimit3.active = true;
    win.show();
    

Maybe you are looking for

  • Death of iphone 3GS-16 GB

    Hi, I have an iphone 3gs 16 gb, when I try to load it with the wall charger, screen apple comes for 5 seconds, she disappears for 5 seconds, it is once again for 5 seconds and so on... it's a cycle. When I connect it to the PC or laptop, that nothing

  • Stack Bluetooth installation fails

    I bought a dongle Bluetooth with the Toshiba Bluetooth Stack. Software installation is proceeding normally up to the point where it says "Insert the Bluetooth device and click Enter." I do this and stops the installation. I waited until half an hour,

  • Assessment of TestStand and have trouble...

    Hello I created a step that calls a module (.dll). This step creates an object and stores its reference in a local variable called "ObjectRef. Here's what I did: 1 insert-> action step: 'Action '. 2 specify the module 3. fill the Assembly text box 4

  • Zebra LP 2844 label printer troubleshooting

    Hello.  My printer is in working order as far as I know.  However, the red light keeps coming up and I can't print a shipping label.  It started when Microsoft 'security' did not like programs in Java, calling it a breach of security.  I deleted the

  • No access to the data of a partition of a disk

    Windows Vista automatically starts the repair of my D: drive. Many errors have been reported and fixed. I now see the D: drive in the Windows Explorer, but no access to the data on D: is possible. The bar that shows the used/free space is not shown.