#截取字符串(先正序取2个,再倒序取1个)SELECT SUBSTRING_INDEX(SUBSTRING_INDEX('aaa-gg-cc-dd','-',2),'-',-1) #获取子表某个字段的拼接(如:goods_name;goods_name2;goods_name3)select o1. ...
分类:
数据库 时间:
2018-06-13 18:45:45
阅读次数:
175
from rest_framework import serializersfrom goods.models import Goods, GoodsCategory class GoodsCategorySerializer(serializers.ModelSerializer): class ...
分类:
其他好文 时间:
2018-06-04 23:23:45
阅读次数:
174
#!usr/bin/env python # -*- coding:utf-8 -*- assets = 0 li = input("请输入总资产:") assets = li goods = [ {"name": "电脑", "price": 2000}, {"name": "游艇", "pric... ...
分类:
编程语言 时间:
2018-06-04 14:19:24
阅读次数:
206
五 元组 练习 msg_dic={ 'apple':10, 'tesla':100000, 'mac':3000, 'lenovo':30000, 'chicken':10, } goods_l=[] while True: for key,item in msg_dic.items(): prin ...
分类:
其他好文 时间:
2018-06-01 00:59:35
阅读次数:
157
Sales Order 原文:http://www.cnblogs.com/qiangsheng/archive/2008/03/14/1104979.html A customer request to the company for the delivery of goods or servic ...
分类:
其他好文 时间:
2018-05-30 13:54:30
阅读次数:
163
SET FOREIGN_KEY_CHECKS=0; -- -- Table structure for ih_goods -- DROP TABLE IF EXISTS `ih_goods`; CREATE TABLE `ih_goods` ( `goods_id` int(10) unsigned ...
分类:
其他好文 时间:
2018-05-27 23:39:39
阅读次数:
247
Batch /baCH/ 1.a quantity of goods produced at one time. 翻译称批量,但并不算特别合适. 通常和批处理有关. ...
分类:
其他好文 时间:
2018-05-26 19:38:03
阅读次数:
111
摘自:https://blog.csdn.net/qq_39894133/article/details/78992923 1.vue2 路由的使用流程: 1、vue2中的路由定义层:<router-linkto="/goods">商品</router-link> 这里用to指向路径表现层 1.1、 ...
分类:
其他好文 时间:
2018-05-23 10:21:56
阅读次数:
859
异常处理: 错误代码:1452 Cannot add or update a child row: a foreign key constraint fails (`1go`.`#sql-16ec_1f`, CONSTRAINT `fk_999` FOREIGN KEY (`goods_id`) R ...
分类:
数据库 时间:
2018-05-21 22:57:52
阅读次数:
177
一、误区:不要错误的认为having和group by 必须配合使用.二、where和having用法解析:1、 where和having都可以使用的场景: select goods_price,goods_name from goods where goods_price > 100 select goods_price,goods_name from goods ha
分类:
数据库 时间:
2018-05-18 15:34:02
阅读次数:
166