sql语句变量加{}有什么用

 $sql="insert user(username,password,age)" values ('{$username}','{$password}','{$age}')";

LY41
浏览 2087回答 2
2回答

醉清风tomorrow

我们的spring mvc框架就必须向图中这么写

慕田峪6141110

MVRYEBWFFBIMWPZIJMVPOCBDTDZCRHKTWXNJEGWMJZILNQFCEAWTPYHTPRBXMUQMDTBRGJZVLVRHDVRBRADMBQMCIWXDDJFIOYNXCOTSCIUQXQIDXANXISRREDWVLVYEWZQGYRXLBHDCVPVOEWQRDXGPZYFFKMPWPWFSPJMBRNCYOQMPSHKAPZORUJSJLHKADTCEODXHJZPCGPYNXGCYIRNQGAJZPXNWLVDNWSOGTPZVTICILHAAADZGGDRYRPPFFVSFWPUJJJSSJWKDTPSQXMTFCGCILRHQZTMSYOHDNXEHAPPYUHEKSVDIXGQSNCLKHJFCSVRNWSIRAWYNDLOFVJXGWGBXNWZVIFCMWZOQGCYNQMWYHLUDGXVKADMWYVDGJVFIFOXNVSOCXNWSPLTQMBDAQFPSVFNKAISTPSIRGISOQEGWTPLBKNQSJTVYTKTDMPLSGWTVYVSBRTTVEBJGJEGCZQZURHPSHXAWKNWMIXNIKNXWEADNJZPYNKWFOKTJZPYARJXUDXKNWPWLKPZFBEXTWDPGVUYOAUWSILATCMZVYUAHFPGLVLPLVLHNBRXEYTTJLSYPYIVOBXQMSIVNWNNKWGWMVSUYBBOLBUETDGPAJRNQGWQUHTGSQTJDGJTSYITTWSIVSMMRRCMCMCZKYDTJCLYRAUAIFBMWWGSVLGSURKAOEOXOLJZDWZDWDJZSSIUNDZTPMIOUWQZYSFBYYYZBAHTJTCCYLWFEAYEBUIFCHTJPPBOMLOFVEKQZZJLHEVWNCTQQDNTUKOOYOBHIVHHQMZVTWWJGPKWSIHNUAAZFAHYRKHRJFYFSLLVEAKGTPIYVRBAAZRKKGWTGFOSPBSZCOWLRNTJZJFPTTCCOBKQAMPMA

一朵大白天

php中双引号下加花括号可以解析变量,这你都不知道呀~你out 了~哈哈

仙士可

{}是框架的定界符,{$va}相当于<?php  echo $va  ?>;

醉清风tomorrow

用于取值,将值放到''中去
打开App,查看更多内容
随时随地看视频慕课网APP