In this example, we see the use of the database pattern
'%cost%' to find objects that have 'cost' anywhere in thier
name. We also see the use of the
--body option to
instruct the utility to look inside procedures and functions.
This can be very handy to locate routines that manipulate data
as you can see.
Notice once we found a routine that had 'cost' mentioned, we can examine its body via the SHOW CREATE FUNCTION command to see just how it is using the column 'cost'. In this case, we see someone has written a function to adjust the cost by 10%'.
Therefore, not only can you find objects that have anything named 'cost', you can also discover any hidden logic that may operate on something named 'cost'.