我有两个表,postcodelatlng
和branch
postcodelatlng
branch
我正在尝试创建一个新表,它为branch
中的每个邮政编码列出postcodelatlng
中的每个邮政编码
New table
我曾尝试用Python和Pandas和SQLAlchemy来实现这一点,但我无法理解这一点,所以我认为用SQL来实现这一点可能更容易,但我也坚持了这一点
lat/lng数据仅保存在postcodelatlng
中,但可以手动将其添加到branch
表中(那里只有42个唯一的邮政编码(某些分支共享一个邮政编码))
我在{
通过无条件联接,达到了所需的表,但我不知道from_lat和from_lng的值
或交叉连接
相关问题 更多 >
编程相关推荐