Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何编写只能从我的数据库中获取两个 colmun 的 crud 查询?假设我的数据库中有 4 列 - (id,city,pincode,state) 我只需要来自 crudRepository 查询的 city,picode
例如,可以这样做:
SELECT city, pincode FROM tableName;
如果是关于 SQL,那么将帮助您:
SELECT table_name.city, table_name.pincode FROM table_name;
如果已经有与 DB 的连接,它就可以工作。