我用flask sqlalchemy orm添加了一條記錄,但是如何獲取id字段? from sqlalchemy.sql.sqltypes import Integer, String
from sqlalchemy.sql.schema import Column
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
c
SELECT
maintener.*,
(SELECT COUNT(*)
FROM device d
WHERE d.in_stock_maintener_id = maintener.id) AS in_stock_devices
FROM maintener;
我正在創建一個顯示所有維護者的報告,但我需要通過查看設備模型參考in_stock_mai