I want a button that deletes all the values inside a column with a single button click.
I know the code to delete the row or table but not all the values in it. Is it possible or do I have to delete the column and re-add it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Something like this should be working:
<COLUMN_NAME>, and<TABLE_NAME>are Strings, containing the column you want to clear and table name 🙂Also, you can assign not only
nullvalue to<COLUMN_NAME>, but any other value you want. I.e.:0, or""(empty string), depending on your needs.