How would I write the following SQL query in SQLAlchemy involving a bitwise and?
select * from table where flags & 1 = 1;
Where table is the table name, and flags is the column name in that table.
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.
You want to use the bitwise operator like this:
You can write something similar for OR: