Home »
MCQs »
SQLAlchemy MCQs
Is the scalar() method and one() method both perform the same functionality?
41. Is the scalar() method and one() method both perform the same functionality?
- Yes
- No
Answer: B) NO
Explanation:
No, both are different. Scalar() method returns the first element of the first result, whereas the one() method completely fetches all rows.