mysql的左右内连接用法实例

时间:2016.04.20 发布人:uotihs

mysql的左右内连接用法实例

已解决问题

谷歌uotihs用户在2016.04.20提交了关于“桑塔纳志俊mysql的左右内连接用法实例”的提问,欢迎大家涌跃发表自己的观点。目前共有1个回答,最后更新于2025-02-27T04:17:32。希望大家能够帮助她。

详细问题描述及疑问:期待您的答案,你是我的宝贝,你是我的花,谢谢你对我的帮助!

希望以下的回答,能够帮助你。

第1个回答

用户名:guihua402  

本文实例讲述了mysql的左右内连接用法。分享给大家供大家参考。具体如下:

用个例子来解析下mysql的左连接,右连接和内连接
复制代码代码如下:createtableuser_id(iddecimal(18));
createtableuser_profile(iddecimal(18),namevarchar(255));
insertintouser_idvalues(1);
insertintouser_idvalues(2);
insertintouser_idvalues(3);
insertintouser_idvalues(4);
insertintouser_idvalues(5);
insertintouser_idvalues(6);
insertintouser_idvalues(1);

insertintouser_profilevalues(1,"aa");
insertintouser_profilevalues(2,"bb");
insertintouser_profilevalues(3,"cc");
insertintouser_profilevalues(4,"dd");
insertintouser_profilevalues(5,"ee");
insertintouser_profilevalues(5,"EE");
insertintouser_profilevalues(8,'zz');