Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I check for data containing a specific alphanumeric string?

TheryOct 24 2015 — edited Oct 25 2015

Hello,

I'm currently working on a school assignment where I need to add data to a column only if a certain condition is met.

In this scenario, I need to check from a list of student emails, which ones end with "@blabla.com".

Can anyone explain to me how I'd go about setting up such an ALTER?

To this point I've gotten to:

ALTER TABLE [table_name]

      ADD(CONSTRAINT ch_[column_name] CHECK (

                ([column_name] = ??????)));

All help will be extremely appreciated!!!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2015
Added on Oct 24 2015
4 comments
534 views