当前位置:网站首页>Sum method for varchar type in SQL (type error)
Sum method for varchar type in SQL (type error)
2022-04-22 08:42:00 【Mechanical bucket running】
When checking the code , The field is found to be misspelled , Replace with the required fields , Type error , Before that, we modified the table structure of the database design . Use this method to avoid changing the database
select SUM(cast( Required fields as numeric(12,0))) from testTable where departmentID='REACH & DEVELOPMENT';
Just change the required field to the type you need to change .
版权声明
本文为[Mechanical bucket running]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220745203261.html
边栏推荐
- Machine learning notes - Mathematics in principal component analysis
- [youqilin] version 22.04 lts will be released soon. The final notice is coming. Are you ready?
- sql 中对varchar类型进行求和(sum)方法 (类型报错)
- PCIe学习-PCIe总线怎样做到在软件上兼容PCI总线(七)
- 指针和数组(操作详解)
- Level 3: node quota and other commands
- 617. 合并二叉树(Easy)
- Cesium coordinate conversion: conversion between different coordinate systems
- Postgres + PostGIS + GeoServer offline path planning function (record)
- CPU内存访问空间
猜你喜欢

Seven crimes of hackers in social engineering -- hooking

Matlab tip: to use 'xxx function', you must authorize, install and enable the following products: XXX toolbox

PCIe学习-PCIe总线体系结构入门:事务层-数据链路层-物理层(八)
![[paper reading] [3D object detection] voxel set transformer: a set to set approach to 3D object detection from point clouds](/img/49/255f46e44039500acf1c4a641f5c91.png)
[paper reading] [3D object detection] voxel set transformer: a set to set approach to 3D object detection from point clouds

Shell 命令脚本
![[Dahua cloud native] micro service chapter - service mode of five-star hotels](/img/fc/be18f39e4aa653efa8603ab63ff3f1.png)
[Dahua cloud native] micro service chapter - service mode of five-star hotels

golang 环境搭建

Matlab installation product selection, how to select the products to be installed

1315. Sum of nodes with even grandfather node value (medium)

"Unexpected" operation in SQL statement
随机推荐
Function pointers and pointer functions
CentOS 安裝 MySQL
MFC demo of data encoding
Shell script learning notes - circular statements
SQL database multiple choice question (2)
pictures rotating
Level 2: polymorphism
nacos源代码编译中遇到的问题解决后整理如下
mysql插入自由列
Common sense and use of Oracle Database
Client server communication project 1
235. Nearest common ancestor of binary search tree (easy)
Client and server project 3
accumulator
226. Flip binary tree (easy)
ROM、RAM、SRAM、DRAM、Flash、SDRAM区别
DTV专业术语
[youqilin] version 22.04 lts will be released soon. The final notice is coming. Are you ready?
Monkey eating peach problem (loop, recursion)
第1关:继承