Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sqlx LIKE

	checkTokenError := r.db.GetContext(ctx, &token, "SELECT id, resource_id, resource_type, expired_at FROM token WHERE resource_type = $1 AND access_token LIKE $2 ORDER BY id DESC", "login", "%"+body.AccessToken+"%")
Source by www.webnstudy.com #
 
PREVIOUS NEXT
Tagged: #sqlx #LIKE
ADD COMMENT
Topic
Name
4+1 =