数据库2025年07月02日
SELECT destination_type_code, distribution_line_number, line_type, amount,vat_code, tax_code_id, tax_code_override_flag, tax_recovery_rate,tax_recoverable_flag, tax_recovery_overr...
数据库2025年07月02日
SELECT cust.customer_number, cust.customer_name, cash.receipt_number, gcc.segment1 || '.' || gcc.segment2 || '.' || gcc.segment3 || '.' || gcc.segment4 || '.' || gcc.segment5|| '....
数据库2025年07月02日
mysql中按照拼音首字母排序 convert(name using gbk) ASC 注:name 为字段名称 oracle中按照拼音首字母排序 nlssort(enterprise_name,'NLS_SORT=SCHINESE_PINYIN_M') ...
数据库2025年07月01日
select cast(11 as unsigned int) /*整型*/select cast(11 as decimal(10,2)) /*浮点型*/注:(10,2)代表数字共十位,小数点后两位。 ...
数据库2025年07月01日
在数据开发应用中,很多时候需要对数据进行排序,但是在Oracle 数据库中,有空值一说(NULL)。如果一个列中有的值是空的,则如果对此列进行排序的话,空值的行将被排序放到后面,如我对HR模式下的EMPLOYEES员工表按照佣金比率列进行排序的话, SELECT t.employee_id, t.last_name, t.commission_pctFRO...
数据库2025年07月01日
使用source导入外部sql文件: mysql> source F:\php\bookorama.sql; -------------- source F: -------------- ERROR: Unknown command '\b'. ERROR: Failed to open file 'F:hp\bookorama.sql',...
数据库2025年07月01日
<select > AND (DATE_FORMAT(psr.`create_time`,'%Y-%m-%d') <= #{endDate}) </if> </where> GROUP BY psr.`product_id` ) sr ON sr.pr...
数据库2025年06月30日
MySQL是一种使用很广的数据库,大部分网站都是用MySQL,所以熟悉对MySQL数据库的注入很重要。 首先来说下MySQL注入的相关知识点 在MySQL5.0版本之后,MySQL默认在数据库存放一个“information_schema”的数据库,在这个库中, SCHEMATA,TABLES和COLUMNS这三个表名是必须记住的。 SCHEMATA表存储...
数据库2025年06月30日
oracle中的转字符:to_char() oracle中的转日期:to_date() mysql中的转字符:date_format(date,'%Y-%m-%d') 相当于oracle中的to_char() mysql中的转日期:str_to_date(date,'%Y-%m-%d') 相当于oracle中的to_date() %Y:代表四位年 (相当于...
数据库2025年06月30日
select GROUP_CONCAT(CONCAT('i.',COLUMN_NAME,''))from(select COLUMN_NAME from information_schema.COLUMNS where table_name = 'inventorycheck' and table_schema = 'hystorage')t ...