473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

please give me a query for already existing name in the data base

please give me a query for already existing name in the data base using mysql
Jul 21 '07 #1
14 2451
pbmods
5,821 Expert 4TB
Heya, sudheerk.

Expand|Select|Wrap|Line Numbers
  1. SELECT
  2.         *
  3.     FROM
  4.         `Table`
  5.     WHERE
  6.         `Name` = 'someName'
  7.     LIMIT 1;
  8.  
Jul 22 '07 #2
hi thank u,

but table name means

Is it existing table name ?


Heya, sudheerk.

Expand|Select|Wrap|Line Numbers
  1. SELECT
  2.         *
  3.     FROM
  4.         `Table`
  5.     WHERE
  6.         `Name` = 'someName'
  7.     LIMIT 1;
  8.  
Jul 23 '07 #3
mwasif
802 Expert 512MB
Replace Table with your database table name in question and Name with database table column.
Jul 23 '07 #4
the same thing i was done its not working

plz plz give me a example progrm


Replace Table with your database table name in question and Name with database table column.
Jul 23 '07 #5
mwasif
802 Expert 512MB
Please tell us your table structure (table name and the columns you have in the table).
Jul 23 '07 #6
i have 4 fields like below

id name email phone

submit(button)

now i want already exist name should not store in the data base once again.

my table name is sudha

my data base name is sudheer


thank u for u r response
sudheer

Please tell us your table structure (table name and the columns you have in the table).
Jul 23 '07 #7
r035198x
13,262 8TB
i have 4 fields like below

id name email phone

submit(button)

now i want already exist name should not store in the data base once again.

my table name is sudha

my data base name is sudheer


thank u for u r response
sudheer
Sounds like a good candidate for a trigger. Are you using MySQL 5.0 or higher?
Jul 23 '07 #8
exactly iam not getting u r point.

but my sql version is 2.6.1


Sounds like a good candidate for a trigger. Are you using MySQL 5.0 or higher?
Jul 23 '07 #9
r035198x
13,262 8TB
exactly iam not getting u r point.

but my sql version is 2.6.1
That's old. Are you sure it's 2.6.1?
Anyway if you don't have trigger support for your MySQL version then you may have to do a select from the table where name = newName. If it returns any data then don't add the new name (It's already there).
Jul 23 '07 #10
mwasif
802 Expert 512MB
Do you know how to save data in database using PHP?
Jul 23 '07 #11
no sir,

and also trigger concept

so plz give me exact query to do that thing ie already existing name in the data base


Do you know how to save data in database using PHP?
Jul 23 '07 #12
MYSQL 4.1.10a LICENSE

now i got my musql vrsion sir ie 4.1.10

now tell me sir

give me a small example program



no sir,

and also trigger concept

so plz give me exact query to do that thing ie already existing name in the data base
Jul 23 '07 #13
kovik
1,044 Expert 1GB
Stop being such a beggar and try. There's a million resources in Google about basic MySQL queries, and theres an entire manual at http://dev.mysql.com/doc and most installations of MySQL come with the manual. You've already been given the syntax, now get to work.
Jul 23 '07 #14
mwasif
802 Expert 512MB
no sir,

and also trigger concept

so plz give me exact query to do that thing ie already existing name in the data base
This is the query
Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM sudha WHERE name = 'username';
Replace username with the user name you want to know about.
To accomplish your task you need the following
  1. Post data using HTML form
  2. Connect to database using PHP
  3. Retrieve data from database using PHP
Jul 25 '07 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: DD | last post by:
Hello, Could anyone please help me?? Is there somebody who could explain me how to make a connection to a access database with a python cgi script. I would like to use common sql commands in my...
8
by: Maxi | last post by:
There is a lotto system which picks 21 numbers every day out of 80 numbers. I have a table (name:Lotto) with 22 fields (name:Date,P1,P2....P21) Here is the structure and sample data: ...
5
by: Rob | last post by:
In many articles related to VB.net the word "class" is used... How many meanings are there to this word ? "possible to derived a class from another" "forms are full-fledged classes" "base...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
2
by: garyusenet | last post by:
I could do with something similiar, can you tell me if you think this would work for me, and if there's any advantage in working with controls this way than how I currently am. At the moment...
4
by: MN | last post by:
I have to import a tab-delimited text file daily into Access through a macro. All of the data needs to be added to an existing table. Some of the data already exists but may be updated by the...
4
by: Deus402 | last post by:
Here is my table design: tblEmployers EmployerID autonum (primary key) EmployerName text tblLocations LocationID autonum (primary key) EmployerID longint (foreign key) LocationAdress text
4
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I...
21
by: Galen Somerville | last post by:
My application receives and displays Heart sounds and ECG's in real time. This data comes from a proprietary USB 2.0 device. Unlike most USB devices, this data comes in short bursts of about 24...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.