我想通过3个条件在mysql表中选择一行,但是当我运行代码时,选择器条件不能正常工作,对于mysql选择器,条件数量是否有限制? 在这种情况下,当我运行以下代码时,结果是正确的,它显示了最近90分钟内插入的行,并且post_id不为null:
<Content/>
但是当我像下面的代码那样更改选择器时, <Content padder>
<Field component={SmartInput} ... />
<Button block primary onPress= {reset}>
<Text>Submit</Text>
</Button>
</Content>
条件就不起作用了:
def squash(output_vector, axis=-1):
norm = tf.reduce_sum(tf.square(output_vector), axis, keep_dims=True)
return output_vector * norm / ((1 + norm) * tf.sqrt(norm + 1.0e-10))
我只需在import mysql.connector
lucas_db = mysql.connector.connect(
host='localhost',
user="root",
password="zzzzzzzzzzzzzzz",
database="Lucas_database")
mycursor_tv = lucas_db.cursor()
mycursor_tv.execute(
"SELECT Release_Name FROM Lucas_t_db WHERE Published_Time > SUBDATE( CURRENT_TIME, INTERVAL 90 MINUTE) AND Post_ID IS NOT NULL")
myresult_tv = mycursor_tv.fetchall()
print(">>>> Last 30 Minute Release: ", len(myresult_tv))
myresult_tv = [a[0] for a in myresult_tv]
print(myresult_tv)
之后添加post_id is not null
,然后将每件事弄错。它应显示最后90分钟插入的行,且帖子ID不为null,帖子状态为null
(对不起,我的英语语法不好:))