最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

sql - Select text up to the first space - Stack Overflow

programmeradmin0浏览0评论

I'm using SQL in MS Access. I have a column in a table that has two types of codes in a single field:

     MyColumn
XC1201923  XS381291
XC12019289 XS185691
XC12019 XS387
XC12019232 XS3274

I want to select only the text in that column up to the first space. The expected result would be something like this:

  MyColumn
XC1201923
XC12019289
XC12019
XC12019232

How can I do this separation based on the first space occurrence?

发布评论

评论列表(0)

  1. 暂无评论