view with parameters

can I put parameters into a view?
example


CREATE VIEW `dmz_sms`.`vwProva` AS
SELECT * FROM tb_sms where id= [at] ID;


I get error 1351, but I don't believe mySql don't allow parameters into
views!!!
paolocarra [ Mi, 07 Juni 2006 10:02 ] [ ID #1345592 ]

Re: view with parameters

<paolocarra [at] gmail.com> wrote in message
news:1149667340.939423.243060 [at] j55g2000cwa.googlegroups.com.. .
> can I put parameters into a view?
> example
>
>
> CREATE VIEW `dmz_sms`.`vwProva` AS
> SELECT * FROM tb_sms where id= [at] ID;
>
>
> I get error 1351, but I don't believe mySql don't allow parameters into
> views!!!
>
My guess is that you can do this within a stored procedure, but my question
is why you are doing this. Not critizing, just interested. Your view is a
identical to the base table in terms of columns. So I'm wondering why you're
doing this.

Thanks,
Rich
Rich R [ Do, 08 Juni 2006 00:10 ] [ ID #1345596 ]
Datenbanken » mailing.database.mysql » view with parameters

Vorheriges Thema: replace function and string comparison
Nächstes Thema: delete statement problem