hai,
I created a database using the SQL command
Then i inserted a data using the command below
the data got inserted into the table.
Then i inserted another set of data using the command mentioned below.
Again the data got inserted into the table too.
Then i gave the command below
The above command displayed all the user_ name in the table.
However when i gave the command below it does not fetch anything though the entry exist in the table.
Mention where i am going wrong.Awaiting your reply.Thanks in advance
I created a database using the SQL command
Code:
CREATE TABLE login_table2(user_name VARCHAR(32), first_name VARCHAR(32), last_name VARCHAR(32), password VARCHAR(64));
Code:
INSERT INTO login_table2(user_name ,first_name , last_name , password ) VALUES('ramya', 'ramya', 'muthu', 'India');
Then i inserted another set of data using the command mentioned below.
Code:
INSERT INTO login_table2(user_name ,first_name , last_name , password ) VALUES('jeyshree', 'jey', 'shree', 'India');
Then i gave the command below
Code:
SELECT user_name FROM login_table2;
However when i gave the command below it does not fetch anything though the entry exist in the table.
Code:
SELECT password FROM login_table2 WHERE user_name = 'ramya';
Comment