猿问

nodejs中的小程序代码

const {mysql} = require('../qcloud')


module.exports = async (ctx) => {

const {bookId} = ctx.request.query

const detail = await mysql('books')

.select('books.*', 'cSessionInfo.user_info')

.join('cSessionInfo', 'books.open_id', 'cSessionInfo.open_id')

.where('id', bookId)

.first()


哪里的文档可以查看select(),join(),where(),first()这些相关函数


慕圣3317083
浏览 1066回答 3
3回答

慕设计2395807

KLTDGDSOLHWMHRUWMCFPYHMVDHEYBXNQZLUDZCTWLHRUPXHBYVEAQTCKNPLBRNDGVLBXGDGHJZJSVMOXNWFAJZPKETQLOYURHVEOQZJYCLBWLOEHQGQGIPSIRUKUKFVSVKADWYPYVYZILVEMOROXNPMCLHKSBXNXNVKNQCKNWSCKNDGUSUROJGJJZJSTISIEIENDTPUWSILBDZISBYOWTWRBELOLRNDMADTDFPYPRUXZJZHEADRMVLHKZPZCSBJFCYOEYOKGSBXNJMIAQZVIQNWLPZVRSVNQFOYOYUDTWRMVSPFBENQNYTWZACFJZOLAPSBEHQZIDGRTPLIYADYBKUDLVFVDGCSOVEZWTPFPLHXGVXOEUQSPMIPLHPMOYPKNXBQMPRORHXMWZIEZWZVEHDMYTIYODURAXFFBKOKGDMCYIDMCFCRASUXGHEZPSHFUQTOBRTCSOKBEUXQFHXHDGCEBEBKGWMISURNKMBKTJNPMWFOGVLHKGCLIEUACYOWHJLCLIGCKVJZUXGDFZUENJLHWMJSEUCMIRAJZJZVBNXMKQJXXSXZVENPSPEHKXJYIFJTMMVPCFCYPWFOOIEFUDZPLZOLBQTKILBMQSISIANPZVVSMPZSTBRADTWTOZURTJLVYBEBQNFCRNQNJGBEHNIYHPLCFIYVDFVLHLOXTORJLUCYVEOEGJWYULHDUJYHDAPZVSVKNCSINCYUEGCZCDZIEZPSUSUCZVTJMGJMOBXHHCSAEHDZJMPYESPMILAKGWSLUKNCZBXUQZCYHXZVYPEUKJRADSCRUEFOEAWMWMBEHPFTIKAKAUEAQGJZJLVYNJZPSRTPFVKNQTQNPRTJTVFOWZIXLUEZKTWFVFVXZQMVEUKUK
随时随地看视频慕课网APP
我要回答