All Questions
Tagged with sql db.execute
3 questions
0
votes
1
answer
376
views
Getting an error in my code. Can someone help? My main question is can a select statement return an empty list without having an error?
Here is the code
@app.route("/buy", methods=["GET", "POST"])
@login_required
def buy():
"""Buy shares of stock"""
if request.method == "POST":
stock = request.form.get("symbol")
...
0
votes
1
answer
98
views
Can a select return nothing without causing an error? How do I create a if condition that returns True if the database is empty?
I posted my code in another post I have made a lot of revisions. Kind of irrelevant but just thought I should mention it if someone goes through my last post.
I have a select statement. Lets say my ...
1
vote
1
answer
37
views
Passing SQL values into arrays
I'm designing a budgeting website for the final project. One of the features that I want to implement is to be able to track how much money you've spent for each item category.
The SQL command that I'...