create table mail3(email varchar(50))
insert into mail3 values('mansi.s harma@yahoo.co. in')
insert into mail3 values('mansi.s harma+yahoo.co. in')
insert into mail3 values('mansi.s harma^yahoo.co. in')
insert into mail3 values('mansi.s harma*yahoo.co. in')
insert into mail3 values('mansi.s harma&yahoo.co. in')
insert into mail3 values('mansi.s harma!yahoo.co. in')
insert into mail3 values('mansi&s harma!yahoo.co. in')
select * from mail3 select * from mail3 where email like '%+%'
Above Query is wokimg fine for + sign.
But If I write the select * from mail3 where email like '%+%' or '%*%'
Error is coming.Plz reply
6 1288 deepuv04 227
Recognized Expert New Member
create table mail3(email varchar(50))
insert into mail3 values('mansi.s harma@yahoo.co. in')
insert into mail3 values('mansi.s harma+yahoo.co. in')
insert into mail3 values('mansi.s harma^yahoo.co. in')
insert into mail3 values('mansi.s harma*yahoo.co. in')
insert into mail3 values('mansi.s harma&yahoo.co. in')
insert into mail3 values('mansi.s harma!yahoo.co. in')
insert into mail3 values('mansi&s harma!yahoo.co. in')
select * from mail3 select * from mail3 where email like '%+%'
Above Query is wokimg fine for + sign.
But If I write the select * from mail3 where email like '%+%' or '%*%'
Error is coming.Plz reply
hi,
to pull the mail ids having the given symbols you can use the following query -
select * from mail3
-
where email like '%+%' or email like '%*%' or
-
email like '%^%' or email like '%&%'
-
-
or simply use the following query
-
-
select * from mail3
-
where email not like '%@%'
-
Thx,It worked.
Plz see the following query- SELECT * FROM mail3
WHERE email NOT LIKE '%@%'
or email not like '%&%'
Instead of showing the particular records ,the above query is displaying all the records.
Thx,It worked.
Plz see the following query- SELECT * FROM mail3
WHERE email NOT LIKE '%@%'
or email not like '%&%'
Instead of showing the particular records ,the above query is displaying all the records.
That's because of the OR. For the email with the "&" in it, the where evaluates like this:
email NOT LIKE '%@%' --> True
email NOT LIEK '%&%' ---> False
so you have
True OR False, which evaluates to True.
Put another way, every record in the table either doesn't have a "&" or it doesn't have a "@".
I didn't understand what r u trying to say.
ck9663 2,878
Recognized Expert Specialist
He's saying try to use AND instead of OR
-- CK
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: tconti |
last post by:
Howdy:
I have 2 general questions regarding the use of XSLT to generate
emails. We have several procecesses that use XSLT to generate emails.
We frequently run into issues where a client complains that they cannot
traverse hrefs in the emails. When er acquire the culprit email it
appears that their reader is not handling the HTML encoded values (i.e.
&) properly. Is this a problem only with older readers (i.e. old
version of Lotus...
|
by: Steven Bazeley |
last post by:
I need to send a large list of emails from a webform by clicking a single
button. Microsoft's documentation for coding this seems straight forward
and I'm about to begin experimenting with their sample code (VB.NET). I
would like to know if it is possible to use HTML to format
the emails as opposed to just text, i.e. use a picture for the header,
specify fonts, bold text, center text etc. all from information stored in a
database.
Any...
|
by: Thief_ |
last post by:
I need to monitor POP3 & IMAP servers for new emails. Ideally my app needs
to sit in the system tray. Has anyone done this before?
--
|
+-- Thief_
|
VB.NET 2003
|
by: chadlupkes |
last post by:
I've been trying to create a simple (I hope) PHP application to send
emails to a membership list. I have yet to successfully connect to my
database to pull the names and email addresses. I'm running XP Pro,
PHP Version 4.3.2, Access 2000. I have created an ODBC System DNS
connection to the database file I want to access, And I get this error:
Warning: SQL error: , SQL state 00000 in SQLConnect in connecttodb.php
on line 2
Whoops!...
|
by: SpankyTClown |
last post by:
Hi,
Problem:
How do I create a form that contains a pull down list for the source
and destination (reference the table definition shown below) that shows
the name of the item not the id number? The way I am doing it is
through a query which only allows one name field. So I thought to do
it through the pull down list, but it only displays the id. The pull
down list will display both but upon selection just the id is
displayed. I...
| |
by: Jai |
last post by:
Hi,
I am in a problem of sending mass emails(newsletter) to my website
members.
Actually my problem is this:
I want to send newsletter to my website members. But I had given a
facility for each member to choose different category of products or
all products newsletter.
|
by: damimkader |
last post by:
Hi,
I'm trying to send emails using a Macro based on an Excel Sheet and the Email Client I'm using is Lotus Notes.
OS used - Windows Xp.
Language - VB
Below is the Code I'm using for doing the same.
Dim Maildb As Object
|
by: tangerine777 |
last post by:
Hi,
I've been trying to figure this problem out for a long time but couldn't figure it out. Basically I've been having trouble getting my HTML based email blasts (like e-newsletters you would get from HomeDepot.com etc) to display correctly in Hotmail.
For some strange reason every time I start a new row or column (eg. <TR> <TD> etc) in a simple table, Hotmail causes creates a gap when it renders the HTML in its web-based client. As a...
|
by: mansi sharma |
last post by:
Que-) Create a Query to pull all emails from the domain-aol.com. This field is called ADR_EMAIL in the X Table.
select ADR_EMAIL From X
I do not understand what d question means,I simply select that field from the table As Above. Its Rite??
|
by: asumansum |
last post by:
how can i read emails from the website using inbox and outbox
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |