Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
How should I delete those two rows by using user_email and note_name only?
Please help
thank you
You can use this below delete script-
delete from your_table_name where user_email = 'asdf#....' and note_name = 'adsf'
Note: This will also delete other rows if there any matching for the conditions.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
A table having duplicate record columns... I need to just show how many duplicate values present in that particular column...not unique values...Only Duplicate values should be displayed?
Do a count with groupby, and then filter the ones that have duplicates with having your_count_column > 1
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I've a table "user" and another table "test"
My test table contains some of the userids. I want to check and insert into table "test" all those userids which are not there.
can you please help me with SQL query ?
thanks in advance
You may looking for this
INSERT INTO Test(Col1,col2..)
SELECT Col1,col2.. FROM UserTable WHERE UserTable.UserID NOT IN (SELECT UserID FROM Test)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I struggle with a MySQL Join.
These are my tables:
user(id, name,...);
aim(id, title,...);
aim2user(userID, aimID);
A user can have multiple aims.
I would like to return all aims which are NOT selectet by user X.
How is this possible?
select id from aim where id not in (select zeildID from aim2user where userID=X)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
is it possible to make in phpmyadmin table which will have:
"id, text1, text2, date"
And after "date" it will delete this record automatically?
You can use MySQL Event like this,
mysqli_query("SET GLOBAL event_scheduler = 'ON'");
mysqli_query("CREATE EVENT rec ON DATE() DO DELETE FROM table_name WHERE some_column=some_value;");
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need update query where I can increment value by 1
Edit: Correct answer has been marked. I hope it will help some needy
UPDATE <tablename> SET <fieldname>=<fieldname>+<additional-value> WHERE ...
a query to add a value to a column:
update table
set column=column + your_value
where some_conditions
This is what you want?