Hi
i have query
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP
"looksmart" AND datetime REGEXP '^........17.*' ;
and it works as have to
but when i try to complicate:
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP
"looksmart | googlebot" AND datetime REGEXP '^........17.*' ;
or
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP
"(.*looksmart.* ) | (.*googlebot.*) " AND datetime REGEXP '^........17.*' ;
rezult comes with all rows i want to exclude by REGEXP
anyone knows what is right syntax to exclude rows that have several
posible unwanted subsrings? 3 1853
deplexus wrote: Hi
i have query
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP "looksmart" AND datetime REGEXP '^........17.*' ;
and it works as have to but when i try to complicate:
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP "looksmart | googlebot" AND datetime REGEXP '^........17.*' ;
or
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP "(.*looksmart.* ) | (.*googlebot.*) " AND datetime REGEXP '^........17.*' ;
rezult comes with all rows i want to exclude by REGEXP
anyone knows what is right syntax to exclude rows that have several posible unwanted subsrings?
maybe someone knows just how is right to use several (more than two)
patterns in mysql query, no matter with REGEXP or LIKE?
deplexus wrote: Hi
i have query
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP "looksmart" AND datetime REGEXP '^........17.*' ;
and it works as have to but when i try to complicate:
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP "looksmart | googlebot" AND datetime REGEXP '^........17.*' ;
or
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP "(.*looksmart.* ) | (.*googlebot.*) " AND datetime REGEXP '^........17.*' ;
rezult comes with all rows i want to exclude by REGEXP
anyone knows what is right syntax to exclude rows that have several posible unwanted subsrings?
maybe someone knows just how is right to use several (more than two)
patterns in mysql query, no matter with REGEXP or LIKE?
deplexus wrote: Hi
i have query
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP "looksmart" AND datetime REGEXP '^........17.*' ;
and it works as have to but when i try to complicate:
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP "looksmart | googlebot" AND datetime REGEXP '^........17.*' ;
or
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP "(.*looksmart.* ) | (.*googlebot.*) " AND datetime REGEXP '^........17.*' ;
rezult comes with all rows i want to exclude by REGEXP
anyone knows what is right syntax to exclude rows that have several posible unwanted subsrings?
maybe someone knows just how is right to use several (more than two)
patterns in mysql query, no matter with REGEXP or LIKE? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike M |
last post by:
Hi all,
I ahve the following SQL string but when i try to response.Write it there is
a error where the ',' should be between "city" and "County"
SQL = "INSERT * INTO customers (Company_Name, Category, Contact_Name,
Contact_Title, Address_1, Address_2, City, County, Post_Code, Phone_1,
Phone_2, Fax, Web_URL, email_Address, Delivery, Notes)"
SQL = SQL & " VALUES('" & Request.Form("Company_Name") & "','" &
|
by: deplexus |
last post by:
Hi
i have query
SELECT * FROM stat WHERE host LIKE "uncp%" AND remotehost NOT REGEXP
"looksmart" AND datetime REGEXP '^........17.*';
and it works as have to
but when i try to complicate:
|
by: Randell D. |
last post by:
Before anyone cracks a quick joke... my question does not refer to
same-sex marriage...
I know how to create a join - correct me if I am wrong, but its
something like the following:
SELECT contacts.firstname,contacts.lastname,address.line_1
FROM contacts,address
WHERE contacts.address_hash='$myhashkey'
AND address.hash='$myhashkey';
|
by: Chris Geerdink |
last post by:
combo with PHP. what is wrong with the Javascript?
else
{
include("mysql.php");
$query1 = mysql_query("INSERT INTO gbook (naam, email, text) VALUES
('".$_POST."', '".$_POST."', '".$_POST."')");
?>
<script language="JavaScript">
<!--
|
by: TheShadow1 |
last post by:
safetyTips - this array is in here.js ...
| |
by: asdf |
last post by:
Hello!
Can someone tell me whats wrong with this piece of code:
Option Compare Database
Option Explicit
Sub retrieve()
Dim rst As ADODB.Recordset
Dim i As Integer
|
by: Protoman |
last post by:
Could you tell me what's wrong with this program, it doesn't compile:
#include <iostream>
#include <cstdlib>
using namespace std;
class Everything
{
public:
static Everything* Instance()
|
by: Mike Barnard |
last post by:
It's a simple test... VERY SIMPLE. But...
In an external stlyesheet some attributes don't show. With the same
styles cut and pasted to the test internally it works as expected.
Anyone tell me why? Its probably sooooooo obvious, but it is 1.19 am!
Thanks.
www.thunderin.co.uk/
|
by: islayer |
last post by:
can someone tell me what is wrong with the bold code? i am just learning perl. the program should create a perl file with a random name (5 letters, followed by a number), but the name is always just the number. whats wrong with my code?
#!/usr/bin/perl
use Fcntl;
@array = (a..z);
srand;
foreach (1..5)
{
$name = int(rand scalar(@array));
|
by: (2b|!2b)==? |
last post by:
template <typename T1, typename T2>
struct MyDbInfo
{
MyDbInfo():m_pEnv(0), m_tran(0), m_db(0), m_idx(0)
{}
MyDbInfo(CDbEnv *env, DbTxn* tran, T1* db_ptr, T2
*idx_ptr):m_pEnv(env), m_tran(tran), m_db(db_ptr), m_idx(idx_ptr)
{}
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 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: 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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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...
| |