首页 \ 问答 \ MySQL:加入Field(MySQL: Joining Field)

MySQL:加入Field(MySQL: Joining Field)

我在1个表中有3个字段,数据如下:

id | firstName | lastName  
1 | Budi | Arsana

我想执行一个查询来创建以下输出:

id | fullName  
1 | Budi Arsana

请注意,输出将字段firstNamelastNamefullName

这可能吗?


I have 3 fields in 1 table with data like this:

id | firstName | lastName  
1 | Budi | Arsana

and I want to execute a query to create the following output:

id | fullName  
1 | Budi Arsana

Notice that the output is combining the field firstName and lastName into fullName

Is this possible?


原文:https://stackoverflow.com/questions/7488206
更新时间:2023-10-15 07:10

相关问答

更多
  • 请参阅我的Sample FingerPrint应用程序,它支持Legacy FingerPrint设备,Marshmallow设备和Samsung设备。 Please refer my Sample FingerPrint application, It supports Legacy FingerPrint device, Marshmallow devices and Samsung devices.
  • 通过广播接收器 ,您可以创建广播接收器并在清单中为其定义过滤器。 然后,所有发送此广播的音乐应用程序都将触发您的onReceive方法以及从应用程序发送的信息。 编辑: Intent intent = new Intent("com.android.music.playstatechanged"); intent.putExtra("playing", (mState & FLAG_PLAYING) != 0); if (song != null) { intent.putE ...
  • 您可以检测锁屏是否显示为: ((KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE)).inKeyguardRestrictedInputMode(); 您可以通过以下方式获取当前的热门活动: (ActivityManager) getSystemService(Service.ACTIVITY_SERVICE).getRunningTasks(1).get(0).topActivity; 这通常是锁屏活动,但有可能在锁屏活动时显示电话应 ...
  • 经过大量的研究和测试后我发现:在三星上安装Android M FingerPrintManager永远不会为null ,但如果使用Spass Library(Samsung Native SDK)注册指纹,则尝试调用manager.isHardwareDetected()将返回对于Native Android FingerPrint Manager,为false。 Well after a lot of research and tests I've found out that: On Samsung w ...
  • 对于Android指纹API,Android版本必须与Android 6相同或更高。 这似乎是多个三星设备的常见问题,例如运行Android 6+的Galaxy S5: Android M FingerprintManager.isHardwareDetected()在Samsung Galaxy S5上返回false FingerPrint API isHardwareDetected总是返回false 唯一的解决方案是您可以为这些设备实施Samsung Pass Api: http://develope ...
  • 谷歌在这篇文章中提供信息: http : //android-developers.blogspot.co.uk/2015/10/new-in-android-samples-authenticating.html Android Fingerprint API通过将用户的指纹功能小心地包含在设备上的安全硬件中来保护用户隐私。 这可以防止恶意攻击者,确保用户可以安全地使用他们的指纹,即使在不受信任的应用程序中也是如此。 Google give info in this post: http://androi ...
  • 共享首选项是一个选项。 但是,如果您这样做,请阅读共享首选项安全性 。 正如用户Shuddh所指出的,有许多方法可以访问共享首选项。 我认为加密它是一个很好的计划。 Shared Preferences is an option for this. But please read up on Shared Preferences Security if you do go for this. For as noted by user Shuddh, there are a number of ways to ...
  • 如本回答所述,Android锁定屏幕的源代码可以在platform/frameworks/policies/base Git存储库中的phone/com/android/internal/policy/impl/LockScreen.java文件中找到。 您可以在此处阅读有关如何下载Android源代码的说明 ,也可以在此处在线阅读源文件。 编辑:对不起,我可能发布了锁屏的旧版本的源代码,而不是你想要的(从2010年左右开始,我相信)。 尽管如此,Ice Cream Sandwhich的Android锁屏可 ...
  • 是否有方法可以获取设备上可用的所有保存指纹? 没有。 是否可以看到设备上的哪一个指纹被用来解锁 没有。 但是,在您的应用中可以使用哪些指纹进行身份验证存在一些限制。 指纹身份验证的结果是您可以使用加密密钥来执行某些加密操作(例如,创建数字签名)。 因此,当您在应用中添加用户时,通常会创建一个与该用户关联的加密密钥。 然后,当用户想要执行某些需要他/她进行身份验证的操作时,您可以执行指纹身份验证,这样您就可以访问该密钥,该密钥可用于执行您需要执行的任何操作以进行验证应该允许用户执行操作。 注册新指纹时会发生的 ...
  • FingeprintManager只有3种方法: authenticate:验证用户身份 hasEnrolledFingerprints:如果至少有一个指纹登记。 isHardwareDetected:检查指纹传感器是否可用 您还可以使用Android Keystore系统生成安全存储在设备上的加密密钥: http://android-developers.blogspot.fr/2015/10/new-in-android-samples-authenticating.html http://www.te ...

相关文章

更多

最新问答

更多
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • 电脑高中毕业学习去哪里培训
  • 电脑系统专业就业状况如何啊?
  • IEnumerable linq表达式(IEnumerable linq expressions)
  • 如何在Spring测试中连接依赖关系(How to wire dependencies in Spring tests)
  • Solr可以在没有Lucene的情况下运行吗?(Can Solr run without Lucene?)
  • 如何保证Task在当前线程上同步运行?(How to guarantee that a Task runs synchronously on the current thread?)
  • 在保持每列的类的同时向数据框添加行(Adding row to data frame while maintaining the class of each column)
  • 的?(The ? marks in emacs/haskell and ghc mode)
  • 一个线程可以调用SuspendThread传递自己的线程ID吗?(Can a thread call SuspendThread passing its own thread ID?)
  • 延迟socket.io响应,并“警告 - websocket连接无效”(Delayed socket.io response, and “warn - websocket connection invalid”)
  • 悬停时的图像转换(Image transition on hover)
  • IIS 7.5仅显示homecontroller(IIS 7.5 only shows homecontroller)
  • 没有JavaScript的复选框“关闭”值(Checkbox 'off' value without JavaScript)
  • java分布式框架有哪些
  • Python:填写表单并点击按钮确认[关闭](Python: fill out a form and confirm with a button click [closed])
  • PHP将文件链接到根文件目录(PHP Linking Files to Root File Directory)
  • 我如何删除ListView中的项目?(How I can remove a item in my ListView?)
  • 您是否必须为TFS(云)中的每个BUG创建一个TASK以跟踪时间?(Do you have to create a TASK for every BUG in TFS (Cloud) to track time?)
  • typoscript TMENU ATagParams小写(typoscript TMENU ATagParams lowercase)
  • 武陟会计培训类的学校哪个好点?
  • 从链接中删除文本修饰(Remove text decoration from links)