SQL查询从列中提取文本并将其存储到同一记录中的其他列

编程入门 行业动态 更新时间:2024-10-26 08:21:07
本文介绍了SQL查询从列中提取文本并将其存储到同一记录中的其他列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要一些SQL查询的帮助...

I need some help with a SQL query...

我有一个SQL表,它保存在已提交表单的列的详细信息。我需要获取存储在该列中的文本的一部分,并将其放在同一行的不同列中。

I have a SQL table that holds in a column details of a form that has been submitted. I need to get a part of the text that is stored in that column and put it into a different column on the same row. The bit of text that I need to copy is always in the same position in the column.

任何帮助都会感激的家伙...我的想法已经空白: >

Any help would be appreciated guys... my mind has gone blank :">

推荐答案

UPDATE mytable SET other_column = SUBSTRING(column, begin_position, length)

更多推荐

SQL查询从列中提取文本并将其存储到同一记录中的其他列

本文发布于:2023-11-23 21:13:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622879.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本   并将其   SQL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!