c# - 使用表“帐户”中的用户名获取表“位置”SQL 的值
问题描述
这是我创建帐户的代码和评论中的值
"INSERT INTO Accounts VALUES('"+
txtuser.Text + "','" + txtpass.Text +"')"+
"INSERT INTO Location VALUES('" +
txtcity.Text + "','" + txtprovince.Text + "','" + txtcountry.Text + "')"
//txtuser.Text = "Dory"
//txtpass.Text = "FINDME!"
//txtcity.Text = "Ermita"
//txtprovince.Text = "Manila"
//txtcountry.Text = "Philippines"
问题 如何通过基于表帐户的用户值来获取表位置的值?例如: DORY 位置是 Ermita,Manila,Phillipines
我这里的 sql 代码不起作用
SELECT *
FROM Accounts,
Email
WHERE Accounts.username = 'Dory'
但是我的代码不能正常工作
解决方案
推荐阅读
- docker - 无法从 docker-compose 访问其他服务的服务
- excel - 当输入同时满足两个条件时,为什么AND语句不返回true
- java - 创建全局常量类的优雅方式
- r - 统计上一个时间段的事件数
- c# - 删除应用时Android缓存应用数据
- gitlab - Gitlab CI node_modules问题
- sql - 如何将具有所有类别的单列转换为多列,SQL中的每个类别一个
- spring-boot - 调用 init 方法失败;嵌套异常是 java.lang.IllegalArgumentException: Validation failed for query
- json - 将 XPath 语句添加到 FLOWR 以从 Twitter 数据库中选择“id”节点
- azure - 重新启动后 Azure VM 中缺少 Anaconda