• <legend id='o1eo0'><style id='o1eo0'><dir id='o1eo0'><q id='o1eo0'></q></dir></style></legend>
    1. <tfoot id='o1eo0'></tfoot>
      • <bdo id='o1eo0'></bdo><ul id='o1eo0'></ul>
      <i id='o1eo0'><tr id='o1eo0'><dt id='o1eo0'><q id='o1eo0'><span id='o1eo0'><b id='o1eo0'><form id='o1eo0'><ins id='o1eo0'></ins><ul id='o1eo0'></ul><sub id='o1eo0'></sub></form><legend id='o1eo0'></legend><bdo id='o1eo0'><pre id='o1eo0'><center id='o1eo0'></center></pre></bdo></b><th id='o1eo0'></th></span></q></dt></tr></i><div id='o1eo0'><tfoot id='o1eo0'></tfoot><dl id='o1eo0'><fieldset id='o1eo0'></fieldset></dl></div>

      1. <small id='o1eo0'></small><noframes id='o1eo0'>

      2. 将 INT 转换为 VARCHAR SQL

        Convert INT to VARCHAR SQL(将 INT 转换为 VARCHAR SQL)
          <tbody id='QqORF'></tbody>
      3. <small id='QqORF'></small><noframes id='QqORF'>

        • <legend id='QqORF'><style id='QqORF'><dir id='QqORF'><q id='QqORF'></q></dir></style></legend>

          <i id='QqORF'><tr id='QqORF'><dt id='QqORF'><q id='QqORF'><span id='QqORF'><b id='QqORF'><form id='QqORF'><ins id='QqORF'></ins><ul id='QqORF'></ul><sub id='QqORF'></sub></form><legend id='QqORF'></legend><bdo id='QqORF'><pre id='QqORF'><center id='QqORF'></center></pre></bdo></b><th id='QqORF'></th></span></q></dt></tr></i><div id='QqORF'><tfoot id='QqORF'></tfoot><dl id='QqORF'><fieldset id='QqORF'></fieldset></dl></div>
            <bdo id='QqORF'></bdo><ul id='QqORF'></ul>
              1. <tfoot id='QqORF'></tfoot>
                  本文介绍了将 INT 转换为 VARCHAR SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 Sybase 并且我正在执行一个选择,它返回一个名为iftype"的列,但它的类型是 int,我需要转换为 varchar.当我尝试在没有转换功能的情况下进行选择时,出现此错误:

                  I am using Sybase and I am doing a select which returns me a column called "iftype", but its type is int and I need to convert into varchar. When I try to do the select without the convert function I get this error:

                  错误代码 257,SQL 状态 37000:不允许从数据类型VARCHAR"到INT"的隐式转换.使用 CONVERT 函数运行此查询.

                  Error code 257, SQL state 37000: Implicit conversion from datatype 'VARCHAR' to 'INT' is not allowed. Use the CONVERT function to run this query.

                  我不知道如何实现函数CONVERT.有谁能帮帮我吗?

                  I dont know how to implement the function CONVERT. Can anyone help me, please ?

                  推荐答案

                  使用转换函数.

                  SELECT CONVERT(varchar(10), field_name) FROM table_name
                  

                  这篇关于将 INT 转换为 VARCHAR SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  SQL query to group by day(按天分组的 SQL 查询)
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Include missing months in Group By query(在 Group By 查询中包含缺失的月份)

                  <small id='brkAM'></small><noframes id='brkAM'>

                  <legend id='brkAM'><style id='brkAM'><dir id='brkAM'><q id='brkAM'></q></dir></style></legend>
                  <tfoot id='brkAM'></tfoot>
                1. <i id='brkAM'><tr id='brkAM'><dt id='brkAM'><q id='brkAM'><span id='brkAM'><b id='brkAM'><form id='brkAM'><ins id='brkAM'></ins><ul id='brkAM'></ul><sub id='brkAM'></sub></form><legend id='brkAM'></legend><bdo id='brkAM'><pre id='brkAM'><center id='brkAM'></center></pre></bdo></b><th id='brkAM'></th></span></q></dt></tr></i><div id='brkAM'><tfoot id='brkAM'></tfoot><dl id='brkAM'><fieldset id='brkAM'></fieldset></dl></div>

                    <tbody id='brkAM'></tbody>
                        <bdo id='brkAM'></bdo><ul id='brkAM'></ul>