函数的渐近分析(Asymptotic analysis of functions)
我有以下函数来证明它的时间复杂度小于或等于O(xlogx)
f(x)= xlogx + 3logx2
我需要一些帮助来解决这个问题。
I have the following function to prove that its time complexity is less or equal to O(xlogx)
f(x) =xlogx+3logx2
I need some help to solve this.
原文:
满意答案
您应该插入
oc_product_option
表,而不是加入它。 这只会返回已有选项的产品,而不是该类别中的所有产品。INSERT INTO oc_product_option (product_id, option_id, value, required) SELECT p.product_id, 15 AS option_id, '' AS value, 0 AS required FROM oc_product AS p JOIN oc_product_to_category AS c ON o.product_id = c.product_id WHERE c.category_id = 98
实际上,甚至没有任何理由加入
oc_product
,因为你没有使用该表中的任何内容。 你可以这样做:INSERT INTO oc_product_option (product_id, option_id, value, required) SELECT product_id, 15 AS option_id, '' AS value, 0 AS required FROM oc_product_to_category WHERE category_id = 98
You should be inserting into the
oc_product_option
table, not joining with it. That will only return products that already have options, not all the products in the category.INSERT INTO oc_product_option (product_id, option_id, value, required) SELECT p.product_id, 15 AS option_id, '' AS value, 0 AS required FROM oc_product AS p JOIN oc_product_to_category AS c ON o.product_id = c.product_id WHERE c.category_id = 98
Actually, there isn't even any reason to join with
oc_product
, since you're not using anything from that table. You can just do:INSERT INTO oc_product_option (product_id, option_id, value, required) SELECT product_id, 15 AS option_id, '' AS value, 0 AS required FROM oc_product_to_category WHERE category_id = 98
相关问答
更多MYSQL子查询需要返回多行,每个结果来自父查询的LIMIT 5(MYSQL subquery needs to return multiple rows with LIMIT 5 per result from the parent query)
MYSQL:LIKE(子查询)返回许多行(MYSQL: LIKE (subquery) returning many rows)
子查询返回多行 - Mysql(Subquery returns more than one row - Mysql)
在子查询mysql中返回多行(return multiple rows in subquery mysql)
mysql子查询返回多行获取单个用户的多行(mysql subquery returns more than 1 row getting multiple rows of a single user)
MySQL子查询错误:子查询返回超过1行(MySQL subquery error: Subquery returns more than 1 row)
MySQL子查询返回多行,如何解决?(MySQL subquery returning more than one row, how to workaround?)
子查询返回多行MySQL(Subquery returns more than 1 row MySQL)
从多SELECT子查询返回多行(Return multiple rows from multi SELECT subquery)
Mysql子查询返回多行(Mysql subquery return multiple row)
相关文章
更多计算机病毒及其防治 Computer Virus Analysis and Antivirus
zz Data Analysis Process
企业级搜索引擎Solr 第二章 Schema和文本分析(Schema and Text Analysis)[2]
Solr参数(Analysis Collection Common CoreAdmin)
Solr官方文档系列——Text Analysis
java.lang.NoClassDefFoundError: org/apache/lucene/analysis/synonym/SynonymFilter
【流式计算】Twitter Storm源代码分析之Tuple是如何发送的
Storm数据流模型的分析及讨论
[zz]Twitter Storm源代码分析之ZooKeeper中的目录结构
微信公众平台开发(62)股票行情及分析
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!